  | | | Strange app unloading behaviour | Strange app unloading behaviour 2004-02-28 - By Nick Kuh
Back I have a lobby application which unloads itself intermittently when there are clients still connected. In the app inspector the trace message just says:
'Unloaded application instance MyLobbyApp/_definst_'
With no further explanation or error message.
I have a feeling that this has something to do with server side shared objects and net connections between my game instances and the lobby application as it always seem to happen just after this method in the lobby has executed:
Game.prototype.closeConnection = function () { if (application["lastGameDefined"+this.trackName] == this) { application.games_so.setProperty(this.trackName,"inactive"); } trace("close this!"); this.so.close(); trace("disconnecting: "+this.trackName+this.gameID); trace("disconnecting: "+application.objGames[this.trackName+this.gameID]); application.disconnect(application.objGames[this.trackName+this.gameID]); this.bStarted = true; }
The disconnect line forces the net connection from that game instance to close as the lobby is now finished exchanging data with that game instance. This method is called when a send message is received by the shared object set up between this instance of the Game class and the related application instance of the game app.
Any ideas?
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
|
|
 |