Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Unit Test Plugin
koonschi:
The error occurs only on startup. When I install the plugin over the menu everything works fine.
Is it possible that my plugin might be loaded before the debugger plugin when c::b starts? If yes, how do I then create the menu entry at the right position?
oBFusCATed:
Try to not depend on the presens of the Debug menu. If the Debug menu is not there just create it after the Build and if Build is not present create it after Project. Unfortunately there is no more robust way to implement this.
Pecan:
You also have cbEVT_PLUGIN_LOADING_COMPLETE event available.
You should be able to modify any menu entry at that time.
Example:
Manager::Get()->RegisterEventSink(cbEVT_PLUGIN_LOADING_COMPLETE, new Event(this, DebuggerManager::OnPluginLoadingComplete));
Alpha:
I remember writing some sort of delayed menu building in my (sort of) abandoned plugin here. (It worked then, but I have not looked at it recently, so no guarantees.)
Navigation
[0] Message Index
[*] Previous page
Go to full version