On Sun, 21 Mar 2004 14:57:18 +0200 (EET) Nerijus Baliunas <[EMAIL PROTECTED]> wrote:
NB> M now compiles with wxMotif (thanks Vadim for fixes for wxCocoa - NB> no wxUSE_TOOLTIPS). Release version works, but debug closes NB> on SIGTRAP with no assert dialog first. Any ideas? ... NB> #5 0x40535ab0 in wxAssert(int, char const*, int, char const*, char const*) ( NB> cond=0, szFile=0x403f8260 "../wxWindows/src/motif/msgdlg.cpp", nLine=142, NB> szCond=0x403f824d "wxAssertFailure", NB> szMsg=0x403f8220 "can't show message box without parent window") NB> at ../wxWindows/src/common/appbase.cpp:552 This seems to explain why there is no assert dialog... Under Motif, wxMessageBox can't be shown in OnInit() because there is no main window yet. It probably still isn't a reason to crash like this though. NB> #13 0x40535ab0 in wxAssert(int, char const*, int, char const*, char const*) ( NB> cond=0, szFile=0x40408d80 "../wxWindows/src/common/menucmn.cpp", nLine=638, NB> szCond=0x40409145 "!m_menuBar", szMsg=0x4040912f "attaching menu twice?") NB> at ../wxWindows/src/common/appbase.cpp:552 NB> #14 0x4037e3f1 in wxMenuBase::Attach(wxMenuBarBase*) (this=0x84615f8, NB> menubar=0x84497e0) at ../wxWindows/src/common/menucmn.cpp:638 NB> #15 0x4037ef1b in wxMenuBarBase::Append(wxMenu*, wxString const&) (this=0x84497e0, NB> menu=0x84615f8) at ../wxWindows/src/common/menucmn.cpp:760 NB> #16 0x402ce2e4 in wxMenuBar::Append(wxMenu*, wxString const&) (this=0x84497e0, NB> menu=0x84615f8, [EMAIL PROTECTED]) at ../wxWindows/src/motif/menu.cpp:296 NB> #17 0x0815593c in wxMFrame::AddFileMenu() (this=0x8447478) NB> at .src/gui/wxMFrame.cpp:332 Ok, this seems to be a harmless bug: wxMotif already attaches the menu to the menubar itself and so an assert happens when this is done again in the base class. I've fixed it (blindly), please let me know if it works better now. Thanks! VZ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
