Question
application.shutdown changes behaviour of xml.load
Hi there,
we are using the function "application.shutdown" ( application.shutdown(); ) to clean up a specific instance of an application. After a room has been shutdown and reused again it refused to load external xml-files with xml.load and does not fire the xml.onload event.
The application is basically a chatapplication which has a master-admin who can reset the room. We needed this kind of reset because our server-sided code sometimes crashes. This is our own problem but instead of wasting 100 hours of debugging we made a nice 'reset' button for our admins. The reset-button (in flash) calls a function on the server which executes "application.shutdown()".
After that the application is unloaded and everybody is 'kicked' from the instance. Our chat has an auto-connect method so all people reconnect automatically after 5 seconds. This works fine.
However if you try to load an XML file (file = new XML(); file.onLoad = function () { trace('loaded'); } ; file.load("myurl.xml"); then it FAILS after the room has been shutdown using the command. It works -fine- (for many months) when the instance is started normally.
The only way to fix an 'unstable' instance , for us , is to restart the whole server.
FMS version 2.0.1
Redhat
PS We are aware of the fixes like 2.0.2 and 2.0.3 but they don't make any note about this problem, do they ?
we are using the function "application.shutdown" ( application.shutdown(); ) to clean up a specific instance of an application. After a room has been shutdown and reused again it refused to load external xml-files with xml.load and does not fire the xml.onload event.
The application is basically a chatapplication which has a master-admin who can reset the room. We needed this kind of reset because our server-sided code sometimes crashes. This is our own problem but instead of wasting 100 hours of debugging we made a nice 'reset' button for our admins. The reset-button (in flash) calls a function on the server which executes "application.shutdown()".
After that the application is unloaded and everybody is 'kicked' from the instance. Our chat has an auto-connect method so all people reconnect automatically after 5 seconds. This works fine.
However if you try to load an XML file (file = new XML(); file.onLoad = function () { trace('loaded'); } ; file.load("myurl.xml"); then it FAILS after the room has been shutdown using the command. It works -fine- (for many months) when the instance is started normally.
The only way to fix an 'unstable' instance , for us , is to restart the whole server.
FMS version 2.0.1
Redhat
PS We are aware of the fixes like 2.0.2 and 2.0.3 but they don't make any note about this problem, do they ?
