Re: [Audacity-devel] Debug build crash
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Dominic M. <do...@mi...> - 2002-03-27 07:59:13
|
I believe I found the problem. Since ControlToolBar and EditToolBar are dynamic classes, the parent class ToolBar needs to be a dynamic class as well. When I added DECLARE_DYNAMIC_CLASS(ToolBar) to ToolBar.h and IMPLEMENT_DYNAMIC_CLASS(ToolBar, wxWindow) to ToolBar.cpp, it seemed to work. Please try this and see if it works for you too. If so, I think you can go ahead and add the new ToolBar code back. - Dominic Shane Mueller wrote: > As mentioned earlier, the toolbar code I checked in will compile on > windows and linux, and will execute fine unless you are using the > wxwindows libraries built with the debug checking. In that case an > assertion fails when the first AudacityProject class is initiated, and > the program crashes. > > I couldn't see any obvious bugs, so it may be something subtle that will > take me a while to root out, or perhaps even wxwindows bug that may > require a substantial workaround. The most obvious difference between > the two versions of this class is that the new version contained a > wxwindows array (created with the WX_DEFINE_ARRAY() macro). I won't > have much time to fix this until later this week, so I tagged the > toolbar snapshot as "ToolBar_Debug_Build_Broken" and re-committed older > versions of the files that changed. CVS head should now work for debug > builds--just without the new toolbar code. > > > > _______________________________________________ > Audacity-devel mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel > |