pure virtual method called
Posted: Sun Dec 19, 2010 8:05 pm
Hello,
I have an application that crashes when it exits. It runs under Windows and Linux with exactly same error displayed :
Here is the debugger trace :
Or does someone knows if I am allowed to write a class that inherits from both wxEvtHandler and wxSocketClient ?
Regards,
Brice
I have an application that crashes when it exits. It runs under Windows and Linux with exactly same error displayed :
The error occurs while an object of class wxCmdlineProtocol is destroyed. I have the feeling that this error is caused by the fact that this object inherits from both wxEvtHandler and wxSocketClient. But, I do not see why I would not be allowed to derive from both classes.pure virtual method called
terminate called without an active exception
Here is the debugger trace :
Does someone has an idea ?#0 0x00007ffff2d17165 in raise () from /lib/libc.so.6
#1 0x00007ffff2d19f70 in abort () from /lib/libc.so.6
#2 0x00007ffff35aadc5 in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/libstdc++.so.6
#3 0x00007ffff35a9166 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007ffff35a9193 in std::terminate() () from /usr/lib/libstdc++.so.6
#5 0x00007ffff35a9a6f in __cxa_pure_virtual () from /usr/lib/libstdc++.so.6
#6 0x0000000000c06330 in GSocket::Shutdown (this=0x1f1fdd0)
at ../../src/unix/gsocket.cpp:592
#7 0x0000000000c015c8 in wxSocketBase::Close (this=0x17feaa0)
at ../../src/common/socket.cpp:295
#8 0x0000000000c010ca in ~wxSocketBase (this=0x17feaa0,
__in_chrg=<value optimized out>) at ../../src/common/socket.cpp:234
#9 0x0000000000c03159 in ~wxSocketClient (this=0x17feaa0,
__in_chrg=<value optimized out>) at ../../src/common/socket.cpp:1237
#10 0x00000000009d4fcd in ~wxCmdlineProtocol (this=0x17fea50,
__in_chrg=<value optimized out>) at ../src/utils/wxcmdprot.cpp:93
Or does someone knows if I am allowed to write a class that inherits from both wxEvtHandler and wxSocketClient ?
Regards,
Brice