Author Topic: Plugins template comments out of date ??  (Read 4728 times)

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Plugins template comments out of date ??
« 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, 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Plugins template comments out of date ??
« Reply #1 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...
Be patient!
This bug will be fixed soon...

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Plugins template comments out of date ??
« Reply #2 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

Dje