Re: [flexcoders] ModuleLoader does not unload anything :(

2009-06-25 Thread Fuzzo
Fuzzo wrote: > > Hi all! > > I'm writing a modular application that loads a module. This module inside > has a Timer that trace something every 5 seconds. > When from application i "exit" (unload) the module, i have no error but i > see the writing done by the module that should be unloaded! >

RE: [flexcoders] ModuleLoader does not unload anything :(

2009-06-25 Thread Gregor Kiddie
Well, you've answered your own question... the module is still alive because it's still alive. There is a Timer object still running and firing events. You need to make sure that anything of that nature is stopped before it can be unloaded. Gk. Gregor Kiddie Senior Developer INPS Tel: 0

RE: [flexcoders] ModuleLoader does not unload anything :(

2009-06-25 Thread Fuzzo
Do you suggest to invoke a timer.stop() before unloading? Shoud this solve the problem? I'm not sure but i'll try! What event can I catch to invoke timer.stop()? It's an internal object of the module and the module doesn't know when are about to be unloaded! Thanks! Gregor Kiddie wrote: > >

RE: [flexcoders] ModuleLoader does not unload anything :(

2009-06-25 Thread Gregor Kiddie
o: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ModuleLoader does not unload anything :( Do you suggest to invoke a timer.stop() before unloading? Shoud this solve the problem? I'm not sure but i'll try! What event can I catch to invoke timer.stop()? It's an inter