Hi,
I'm playing with Cocoon and I really like it, but there's a minor
cosmetic issue when you run it locally (file:// etc): Flash Player
explodes into a huge stack overflow when you connect and the NetGroup
gets Rejected.
When I accidentally Compile+Run, or somebody opens it directly from
the svn-checkout it crashes Flash. I know P2P doesn't work for local
files so I'm not even supposed to do this, but it would be nice &
smooth if it didn't choke the player (and any attached debugger) if it
happened. It has something to do with the close/cleanup of a
NetConnection or Group that enters intro a event loop.
So my question: maybe you guys can make it so that it fails gracefully
if we mess-up? Not really high priority but would be a bit friendlier.
I'm using Cocoon in pure AS3 (no MXML) on FDT Max/FCSH.
Like so:
this._local = new LocalNetworkDiscovery();
this._local.autoConnect = false;
this._local.url = 'rtmfp:';
this._local.multicastAddress = '
225.225.0.1:30321';
this._local.addEventListener(GroupEvent.GROUP_CONNECTED,
this.handleGroupConnected);
//... (more)
this._local.connect();
This results in a floor of:
at flash.net::NetGroup/close()
at com.projectcocoon.p2p.managers::GroupManager/cleanup()
at com.projectcocoon.p2p.managers::GroupManager/netStatusHandler()
at flash.net::NetGroup/invoke()
at flash.net::NetGroup/close()
at com.projectcocoon.p2p.managers::GroupManager/cleanup()
at com.projectcocoon.p2p.managers::GroupManager/netStatusHandler()
at flash.net::NetGroup/invoke()
at flash.net::NetGroup/close()
at com.projectcocoon.p2p.managers::GroupManager/cleanup()
at com.projectcocoon.p2p.managers::GroupManager/netStatusHandler()
at flash.net::NetGroup/invoke()
at flash.net::NetGroup/close()
at com.projectcocoon.p2p.managers::GroupManager/cleanup()
at com.projectcocoon.p2p.managers::GroupManager/netStatusHandler()
at flash.net::NetGroup/invoke()
at flash.net::NetGroup/close()
at com.projectcocoon.p2p.managers::GroupManager/cleanup()
at com.projectcocoon.p2p.managers::GroupManager/netStatusHandler()
at flash.net::NetGroup/invoke()
at flash.net::NetGroup/close()
Grtz and thanks for sharing,
Bart