Plugins preShutdown
-
Chookaa
- Gnoblar
- Posts: 1
- Joined: Sun Jan 31, 2010 4:19 am
Plugins preShutdown
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.
- spookyboo
- Silver Sponsor

- Posts: 1141
- Joined: Tue Jul 06, 2004 5:57 am
- x 151
- Contact:
Re: Plugins preShutdown
I delete my factories in the uninstall() function of the plugin.
Gui generator tool https://github.com/spookyboo/Magus ==> Windows binaries https://github.com/spookyboo/Magus_bin
HLMS editor https://github.com/spookyboo/HLMSEditor ==> Windows setup https://github.com/spookyboo/HLMSEditor ... e?raw=true
HLMS editor https://github.com/spookyboo/HLMSEditor ==> Windows setup https://github.com/spookyboo/HLMSEditor ... e?raw=true