~line 520, in main.cpp
We're building menus for plugins after changing them, heh, but the menu is currently not set
SetMenuBar(mbar) before that fixes the problem
edit: part of it...grrr
Ok, if we set before that section of code, the app wont crash but the menu wont get updated. If we set again after, it updates. Is there a menu bar update function? According to the wx docs for wxFrame, SetMenuBar, "Note that it is not possible to call this function twice for the same frame object."
It's working, but I'm sure setting it twice is improper..we're rebuidling the whole menu every time something has to get changed as well, and the update functions rely on the window already having a menu, but we remove it.
I suppose we can getmenu, set the menu bar to NULL, and then set the menu bar to what we get'ted prior to setting it to NULL...?
edit: Nevermind, we can just set the menu multiple times I guess, unless someone else is rewriting that code?
#1 0xa7775767 in CompilerGCC::OnRelease (this=0x824cf00, appShutDown=false)
at compilergcc.cpp:262
The next problem is here, I can enable plugins, but removal of the gcc one crashes. m_Menu is probably NULL and not allocated for deletion.