Crash in wxMSW-2.8.4 in wincmn.cpp

Jens Rasch J.Rasch at am.qub.ac.uk
Tue Jul 3 08:13:43 PDT 2007


Hi,

I was wondering whether anyone else has seen this as well:
Occasionally my program crashes in wincmn.cpp inside the function
static void DoNotifyWindowAboutCaptureLost(wxWindow *win) {
    wxMouseCaptureLostEvent event(win->GetId());
 ...
}
It appears that win is invalid so that win->GetId() no longer exists.
Unfortunately, it is almost impossible to reliably trigger this, it only 
happens occasionally and appears to be some race condition. I have not 
seen this on earlier versions (2.6.x) or on Linux. The call stack 
indicates that only classes and events inside the wxWindows library (and 
MS windows) are called and not functions from my program.
The sequence of events to get this in my program is after a Dialog box 
has been closed, a wxGrid gets destroyed and then the user clicks on a 
toolbar button which causes the crash.

If it happens to be a bug in my program, is there a way to disable 
triggering this event or redirecting it somehow?
This might help tracing it down a bit more and shedding some light on 
what exactly is going on.

any help appreciated.

Jens





More information about the wx-dev mailing list