Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Plugins template comments out of date ??
(1/1)
dje:
Hi !!
While debugging install/uninstall of the future ThreadSearch plugin 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...
...
}
--- End code ---
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
mandrav:
Yes, the comment is out of date. Since we supported plugin enabling disabling on the fly this comment became obsolete...
dje:
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
Dje
Navigation
[0] Message Index
Go to full version