C++ program crashes when dialog window is opened

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
DarthVega7
In need of some credit
In need of some credit
Posts: 7
Joined: Sat Feb 21, 2015 6:29 pm

C++ program crashes when dialog window is opened

Post by DarthVega7 »

Hello,

My program keeps crashing when the ViewItem dialog window is opened.
Here's my error log:

Code: Select all

#0 FEEEFEEE	?? () (??:??)
#1 00CB6BCF	wxWindowBase::InformFirstDirection(this=0x65a108, direction=8, size=62, availableOtherDir=-86) (../../src/common/wincmn.cpp:873)
#2 00C977E8	wxSizerItem::InformFirstDirection(this=0x65af68, direction=8, size=62, availableOtherDir=-86) (../../src/common/sizer.cpp:368)
#3 00C9CD88	wxBoxSizer::RecalcSizes(this=0x65a098) (../../src/common/sizer.cpp:2097)
#4 00C997F4	wxSizer::Layout(this=0x65a098) (../../src/common/sizer.cpp:980)
#5 011B077D	wxSizer::SetDimension(this=0x65a098, pos=..., size=...) (../../include/wx/sizer.h:678)
#6 011B0808	wxSizer::SetDimension(this=0x65a098, x=0, y=0, width=465, height=72) (../../include/wx/sizer.h:685)
#7 00CBB352	wxWindowBase::Layout(this=0x28ebbc) (../../src/common/wincmn.cpp:2509)
#8 00407FDE	_fu114__wxDefaultPosition() (C:\Users\Josh\Documents\wxBT2\ViewItem.cpp:64)
#9 0040B17E	wxBT2Frame::Onret_btnClick(this=0x654b38, event=...) (C:\Users\Josh\Documents\wxBT2\wxBT2Main.cpp:371)
#10 00A63568	wxAppConsoleBase::HandleEvent (this=0x644ba0, handler=0x654b38, func=(void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &) (../../src/common/appbase.cpp:611)
#11 00A635C4	wxAppConsoleBase::CallEventHandler(this=0x644ba0, handler=0x654b38, functor=..., event=...) (../../src/common/appbase.cpp:623)
#12 00B27949	wxEvtHandler::ProcessEventIfMatchesId(entry=..., handler=0x654b38, event=...) (../../src/common/event.cpp:1384)
#13 00B283E2	wxEvtHandler::SearchDynamicEventTable(this=0x654b38, event=...) (../../src/common/event.cpp:1743)
#14 00B27D8B	wxEvtHandler::TryHereOnly(this=0x654b38, event=...) (../../src/common/event.cpp:1577)
#15 01116AF0	wxEvtHandler::TryBeforeAndHere(this=0x654b38, event=...) (../../include/wx/event.h:3671)
#16 00B27C1F	wxEvtHandler::ProcessEventLocally(this=0x654b38, event=...) (../../src/common/event.cpp:1514)
#17 00B27BC0	wxEvtHandler::ProcessEvent(this=0x654b38, event=...) (../../src/common/event.cpp:1487)
#18 00CBD673	wxWindowBase::TryAfter(this=0x655248, event=...) (../../src/common/wincmn.cpp:3427)
#19 00B27BEB	wxEvtHandler::ProcessEvent(this=0x655248, event=...) (../../src/common/event.cpp:1500)
#20 00CBD673	wxWindowBase::TryAfter(this=0x655900, event=...) (../../src/common/wincmn.cpp:3427)
#21 00B27BEB	wxEvtHandler::ProcessEvent(this=0x655900, event=...) (../../src/common/event.cpp:1500)
#22 00B27E5B	wxEvtHandler::SafelyProcessEvent(this=0x655900, event=...) (../../src/common/event.cpp:1605)
#23 00CB87DA	wxWindowBase::HandleWindowEvent(this=0x655900, event=...) (../../src/common/wincmn.cpp:1525)
#24 00C78B58	wxListBoxBase::SendEvent(this=0x655900, evtType=10311, item=6, selected=true) (../../src/common/lboxcmn.cpp:202)
#25 00BC1FC8	wxListBox::MSWCommand(this=0x655900, param=1) (../../src/msw/listbox.cpp:633)
#26 ??	0x00b99702 in wxWindow::HandleCommand (this=0x655248, id_=100, cmd=1, control=0xb715e4 <(anonymous namespace)::wxCopyStgMedium(STGMEDIUM const*, STGMEDIUM*)+55>) (../../src/msw/window.cpp:5337)
#27 00B940B7	wxWindow::MSWHandleMessage(this=0x655248, result=0x28f528, message=273, wParam=65636, lParam=11998692) (../../src/msw/window.cpp:3049)
#28 00B95290	wxWindow::MSWWindowProc(this=0x655248, message=273, wParam=65636, lParam=11998692) (../../src/msw/window.cpp:3629)
#29 00B936AE	wxWndProc(hWnd=0x5e0b0e, message=273, wParam=65636, lParam=11998692) (../../src/msw/window.cpp:2718)

User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: C++ program crashes when dialog window is opened

Post by doublemax »

The callstack is pretty much useless without context. Please show some relevant parts of your code, especially the event handler and how it is connected (Bind/Connect call or static event table).
Use the source, Luke!
Post Reply