access violation using wxTreeCtrl
Harry
"harry dot news at armadillo dot fr" at a.mx.sunsite.dk
Wed Mar 5 00:39:27 PST 2008
Vadim,
Using Visual Studio 2005 and daily build wxMSW-2008-03-04, I don't get
the assertions,
but I still get the abort:
Unhandled exception at 0x74cdc1f4 in treectrl.exe: 0xC0000005: Access
violation reading location 0xfeeeff0a.
It seems to me like wxTreeCtrl::DeleteAllItems() is trying to delete
already-deleted items.
The difference between your findings and mine might be because of racing
conditions caused by
differences between our respective machines.
If you point me out in the right direction I can continue to debug this
on my machine, or else as we're both
in france we can get in direct contact.
The stack trace is as follows:
comctl32.dll!74cdc1f4()
[snip]
user32.dll!76272d14()
> treectrl.exe!wxWindow::MSWDefWindowProc(unsigned int nMsg=4353,
unsigned int wParam=0, long lParam=-65536) Line 2258 + 0x25 bytes C++
treectrl.exe!wxTreeCtrl::MSWDefWindowProc(unsigned int nMsg=4353,
unsigned int wParam=0, long lParam=-65536) Line 2450 C++
treectrl.exe!wxWindow::MSWWindowProc(unsigned int message=4353,
unsigned int wParam=0, long lParam=-65536) Line 3508 + 0x22 bytes C++
treectrl.exe!wxTreeCtrl::MSWWindowProc(unsigned int nMsg=4353,
unsigned int wParam=0, long lParam=-65536) Line 2412 + 0x17 bytes C++
treectrl.exe!wxWndProc(HWND__ * hWnd=0x000307e2, unsigned int
message=4353, unsigned int wParam=0, long lParam=-65536) Line 2669 +
0x1c bytes C++
user32.dll!76271a10()
[snip]
treectrl.exe!wxTreeCtrl::DeleteAllItems() Line 1630 + 0x1b
bytes C++
treectrl.exe!wxTreeCtrl::~wxTreeCtrl() Line 808 C++
treectrl.exe!MyTreeCtrl::~MyTreeCtrl() Line 68 + 0x18 bytes C++
treectrl.exe!MyTreeCtrl::`scalar deleting destructor'() + 0xf
bytes C++
treectrl.exe!wxWindowBase::DestroyChildren() Line 424 + 0x21
bytes C++
treectrl.exe!wxWindow::~wxWindow() Line 578 C++
treectrl.exe!wxPanel::~wxPanel() Line 133 + 0x1d bytes C++
treectrl.exe!wxPanel::`scalar deleting destructor'() + 0xf
bytes C++
treectrl.exe!wxWindowBase::DestroyChildren() Line 424 + 0x21
bytes C++
treectrl.exe!wxWindow::~wxWindow() Line 578 C++
treectrl.exe!wxTopLevelWindowBase::~wxTopLevelWindowBase() Line
112 + 0x33 bytes C++
treectrl.exe!wxTopLevelWindowMSW::~wxTopLevelWindowMSW() Line 624
+ 0xf bytes C++
treectrl.exe!wxTopLevelWindow::~wxTopLevelWindow() + 0xf bytes C++
treectrl.exe!wxFrameBase::~wxFrameBase() Line 79 + 0x1d bytes C++
treectrl.exe!wxFrame::~wxFrame() Line 214 + 0xf bytes C++
treectrl.exe!MyFrame::~MyFrame() Line 324 + 0xf bytes C++
treectrl.exe!MyFrame::`scalar deleting destructor'() + 0xf
bytes C++
treectrl.exe!wxAppBase::DeletePendingObjects() Line 343 + 0x21
bytes C++
treectrl.exe!wxAppBase::ProcessIdle() Line 376 C++
treectrl.exe!wxEventLoopManual::Run() Line 82 + 0x44 bytes C++
treectrl.exe!wxAppConsoleBase::MainLoop() Line 305 + 0x25 bytes C++
treectrl.exe!wxAppConsoleBase::OnRun() Line 254 C++
treectrl.exe!wxAppBase::OnRun() Line 293 C++
treectrl.exe!wxEntryReal(int & argc=1, wchar_t * *
argv=0x00ffa850) Line 460 + 0x1b bytes C++
treectrl.exe!wxEntry(int & argc=1, wchar_t * * argv=0x00ffa850)
Line 210 + 0xd bytes C++
treectrl.exe!wxEntry(HINSTANCE__ * hInstance=0x00400000,
HINSTANCE__ * __formal=0x00000000, HINSTANCE__ * __formal=0x00000000,
int nCmdShow=1) Line 424 + 0x10 bytes C++
treectrl.exe!WinMain(HINSTANCE__ * hInstance=0x00400000,
HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x002c416a, int
nCmdShow=1) Line 163 + 0x18 bytes C++
treectrl.exe!__tmainCRTStartup() Line 589 + 0x35 bytes C
treectrl.exe!WinMainCRTStartup() Line 414 C
Vadim Zeitlin wrote:
> On Mon, 03 Mar 2008 13:56:38 +0100 Harry <"harry dot news at armadillo dot fr"@a.mx.sunsite.dk> wrote:
>
> H> Did you try it with a vanila 2.8.7 version ?
>
> No, sorry, I thought you tried it with 2.8 branch and got the same result
> with it. As I'm more interested in fixing it in the latest version and not
> confirming that it was present in the old one, could you please test with
> 2.8 branch from svn? TIA!
>
> H> Did you open "Folder child 1" and click on the first child before exiting ?
>
> Yes, I did.
>
> Regards,
> VZ
>
>
More information about the wx-users
mailing list