The Flash version of Lacewing is a bit of a mess. It has a number of issues that cause a Flash swf to completely lock up, which is pretty disastrous. I don't even think the errors are that hard to fix, just involving a check for a null value every now and then.
The following errors are the ones that pop up when I'm running in the debug version of Flash, and only when I've got somewhere around 18 or so connections.
This is the most common one:
Code
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at lacewing::Client/handleMessage()
at lacewing::Client/process()
at lacewing::Client/onSocketReceive()
Occasionally I also get these:
Code
Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readBytes()
at lacewing::Client/readBinary()
at lacewing::Client/handleMessage()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/onSocketReceive()
Code
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at lacewing::Client/getPeer()
at lacewing::Client/handleMessage()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/process()
at lacewing::Client/onSocketReceive()
I'm not sure what kind of ritual one must perform to get a fix for Lacewing, but Mathias and Looki (who aren't even the authors!) have patched the flipping thing before, so I'm posting this here with the hope that my last few months of work haven't been completely wasted.