Page 1 of 1

Plugins preShutdown

Posted: Thu Dec 16, 2010 1:01 pm
by Chookaa
just wondering if it would be a good idea to have the plugin system call a preShutdown function. in my project i have a plugin that has a objectFactoryManager like the idea sugested int this wiki page http://www.ogre3d.org/tikiwiki/Creating ... e=Cookbook, the problem i came across was that i have the main factory manager calling a shutdown() on each factory it had registered. then when each factory does its cleanup the scenemanager is already invalid as the plugin shutdown() is not called until the root is already destroyed. even having the plugins shutdown called before the root is destroyed would do the trick.

Re: Plugins preShutdown

Posted: Thu Dec 16, 2010 7:00 pm
by spookyboo
I delete my factories in the uninstall() function of the plugin.