Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: dje on January 09, 2007, 11:51:48 pm

Title: Plugins template comments out of date ??
Post by: dje on January 09, 2007, 11:51:48 pm
Hi !!

While debugging install/uninstall of the future ThreadSearch plugin http://forums.codeblocks.org/index.php?topic=4878.msg38107#msg38107 (http://forums.codeblocks.org/index.php?topic=4878.msg38107#msg38107), I looked carefully at the OnRelease method :
Code
void ThreadSearch::OnRelease(bool appShutDown)
{
// do de-initialization for your plugin
// if appShutDown is false, the plugin is unloaded because Code::Blocks is being shut down,
// which means you must not use any of the SDK Managers
// NOTE: after this function, the inherited member variable
// m_IsAttached will be FALSE...
...
}

It seems that whatever testing case (plugin uninstall, application shut down), the managers are available.

As it seems very interesting to me, I'd like to know if I am a lucky tester or if the comment are out of date due to an evolution ??

Dje
Title: Re: Plugins template comments out of date ??
Post by: mandrav on January 10, 2007, 09:22:20 am
Yes, the comment is out of date. Since we supported plugin enabling disabling on the fly this comment became obsolete...
Title: Re: Plugins template comments out of date ??
Post by: dje on January 11, 2007, 09:32:47 pm
Hi !

I removed the managers warnings comments from plugin templates files.
The patch :
https://developer.berlios.de/patch/?func=detailpatch&patch_id=1818&group_id=5358 (https://developer.berlios.de/patch/?func=detailpatch&patch_id=1818&group_id=5358)

Dje