Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ClearCase Plug-In

<< < (3/6) > >>

killerbot:
I linke with the lib from cb itself, still get the crash. searching searching ....

killerbot:

Hi folks,

The crash problem is gone, the reason and solution can be found at :
http://forums.codeblocks.org/index.php/topic,1224.0.html

So I could continue my programming on the clearcase plug-in. I am close to an alpha release.

One minor problem I have is that I created 2 access points for the functionality : a menu in the menubar( that one is ok), and a submenu in the context menu of the editor, and in there I have a problem. When you start up, the context menu is OK, but once a selection has been made out of my submenu, the next time you right click -> my submenu has disappeared.

Thus I am tackling this problem for the moment, any ideas are more then welcome ;-)

cheers,
Lieven

thomas:
The correct way is to add a menu item (or a submenu) from the BuildModuleMenu function. You re-create whatever you need every time the menu is popped up this way.

killerbot:
Well that's what I am doing, but it seems not enough.

Okay, while I was pasting the code in here (already removed it again), I saw the problem. I allocated my menu in this function but only when it was not allocated, and doing so I only added the entries .... in the case that ... it was not allocated yet... tssss

stupid stupid stupid ...... me

killerbot:
You fix 1 thing you break another it seems.

I allocate my wxMenu (for the submenu) now at constructor time, and add it to the context menu during the BuildModuleMenu, but for some reason it is interfering now with the entries in the folding submenu.
And at the second activation it crashes the entire cb.

1) I allocate submenu at constructor, and at BuildModuleMenu I add it to context menu and add also all the entries in my submenu -------> second time context menu is shown both folding and my menu have the entries of both submenus, and crash
2) I allocate submenu at constructor and already add all it's entries, at BuildModuleMenu I add the submenu itself to the context menu ---> second time context menu is shown both folding and my menu have the entries of the folding menu, and crash

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version