Plugins preShutdown

What it says on the tin: a place to discuss proposed new features.
Post Reply
Chookaa
Gnoblar
Posts: 1
Joined: Sun Jan 31, 2010 4:19 am

Plugins preShutdown

Post 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.
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: Plugins preShutdown

Post by spookyboo »

I delete my factories in the uninstall() function of the plugin.
Post Reply