[wx-dev] inline virtual functions problems on the iphone ....
Stefan Csomor
csomor at advancedconcepts.ch
Thu Jul 17 02:07:48 PDT 2008
Hi Vaclav
sorry, yes, I realize I've left out quite a lot of details :
it is a gcc 4.0
i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
which is used for both the library and the application
I'm getting no warnings when linking the application against the static
library
when running the app, upon tapping the button, I get a 'gdb:interrupted'
message on the remote debugger, being in the wxControl::GetInputWindow
method which is not displayed
I've got difficulty debugging the process before this 'interrupted' occurs,
as gdb doesn't seem to find my source breakpoints in the static lib
currently, I remember from yesterday evening that it was saying something
about stepping into a "non-virtual thunk" immediately before distaster
striked ...
my mail about the involved inline virtual wxControl::GetInputWindow was sent
immediately after my first mail, but it doesn't seem to have arrived yet ...
the this pointer at the moment the crash happens is odd, the bt is
#0 0x0021a4a0 in wxControl::GetInputWindow (this=0x254dd1) at control.h:88
#1 0x0006920c in wxInputConsumer::OnMouse (this=0x75dc58,
event=@0x2fffea58) at /Volumes/Cargo/wxSVNHEAD/src/univ/inpcons.cpp:97
#2 0x00201244 in wxControl::OnMouse (this=0x75da90, event=@0x2fffea58) at
/Volumes/Cargo/wxSVNHEAD/src/univ/control.cpp:49
#3 0x00254e28 in wxAppConsoleBase::HandleEvent (this=0x712fb0,
handler=0x75da90, func={__pfn = 0x201221
<wxControl::OnMouse(wxMouseEvent&)+1>, __delta = 0}, event=@0x2fffea58) at
/Volumes/Cargo/wxSVNHEAD/src/common/appbase.cpp:404
#4 0x00027cac in wxEvtHandler::ProcessEventIfMatches (entry=@0x3e8864,
handler=0x75da90, event=@0x2fffea58) at
/Volumes/Cargo/wxSVNHEAD/src/common/event.cpp:1232
#5 0x00028134 in wxEventHashTable::HandleEvent (this=0x3e8a8c,
event=@0x2fffea58, self=0x75da90) at
/Volumes/Cargo/wxSVNHEAD/src/common/event.cpp:909
#6 0x00029ed8 in wxEvtHandler::ProcessEvent (this=0x75da90,
event=@0x2fffea58) at /Volumes/Cargo/wxSVNHEAD/src/common/event.cpp:1294
#7 0x00029ff8 in wxEvtHandler::SafelyProcessEvent (this=0x75da90,
event=@0x2fffea58) at /Volumes/Cargo/wxSVNHEAD/src/common/event.cpp:1318
#8 0x0017893a in wxWindowBase::HandleWindowEvent (this=0x75da90,
event=@0x2fffea58) at /Volumes/Cargo/wxSVNHEAD/src/common/wincmn.cpp:1135
#9 0x0030d350 in -[wxUIView handleTouchEvent:withEvent:] (self=0x75dc80,
_cmd=0x353c74, touches=0x75fc50, event=0x74fe50) at
/Volumes/Cargo/wxSVNHEAD/src/osx/iphone/window.mm:193
Thanks,
Stefan
More information about the wx-dev
mailing list