"window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST" assertion

Volker Bartheld dr_versaeg at freenet.de
Fri Feb 9 04:25:37 PST 2007


Hi!

I was ALT-tabbing through various windows, bringing my wxMSW-app in
front and then again to the back when it suddently threw this "didn't
process wxEVT_MOUSE_CAPTURE_LOST" assertion. I didn't click on any
controls on my wxW-app which contains various toolbars, (bitmap)
buttons, wxGrids, comboboxes etc.

By breaking into the debugger (for a snippet of the call stack, see
below), I found out that the issue somehow happened in

 int wxGui::OnRun()
 {
   try
   {
     return wxApp::OnRun();
   }
   catch(...)
   {
     return EXIT_FAILURE;
   }
 }

, within wxApp::OnRun(). I'd like to investigate that a bit further but
have no clue where to start what signs to follow.

Can you help?

THX,
Volker

P.S.: wxMSW V2.8.0rc1


 	NTDLL.DLL!_DbgBreakPoint at 0() 	
 	gui.exe!wxTrap()  Line 583 + 0x8 bytes	C++
 	gui.exe!DoShowAssertDialog(const wxString & msg={...})  Line 677	C++
 	gui.exe!wxAppTraitsBase::ShowAssertDialog(const wxString & msg={...})  Line 540 + 0x9 bytes	C++
 	gui.exe!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg={...})  Line 594	C++
 	gui.exe!ShowAssertDialog(const wchar_t * szFile=0x00b03d28, int nLine=0x00000963, const wchar_t * szFunc=0x020b0154, const wchar_t * szCond=0x00b03ce8, const wchar_t * szMsg=0x00b03c58, wxAppTraits * traits=0x0144cee0)  Line 830 + 0x13 bytes	C++
 	gui.exe!wxAppConsole::OnAssertFailure(const wchar_t * file=0x00b03d28, int line=0x00000963, const wchar_t * func=0x020b0154, const wchar_t * cond=0x00b03ce8, const wchar_t * msg=0x00b03c58)  Line 443 + 0x22 bytes	C++
 	gui.exe!wxOnAssert(const wchar_t * szFile=0x00b03d28, int nLine=0x00000963, const char * szFunc=0x00b03d08, const wchar_t * szCond=0x00b03ce8, const wchar_t * szMsg=0x00b03c58)  Line 633 + 0x33 bytes	C++
 	gui.exe!DoNotifyWindowAboutCaptureLost(wxWindow * win=0x014c8818)  Line 2403 + 0x1e bytes	C++
 	gui.exe!wxWindowBase::NotifyCaptureLost()  Line 2420 + 0xc bytes	C++
 	gui.exe!wxWindow::HandleCaptureChanged(void * hWndGainedCapture=0x00000000)  Line 4195	C++
 	gui.exe!wxWindow::MSWWindowProc(unsigned int message=0x00000215, unsigned int wParam=0x00000000, long lParam=0x00000000)  Line 3026 + 0xc bytes	C++
 	gui.exe!wxWndProc(HWND__ * hWnd=0x00010c2a, unsigned int message=0x00000215, unsigned int wParam=0x00000000, long lParam=0x00000000)  Line 2490 + 0x1e bytes	C++
 	USER32.DLL!___ClientCharToWchar at 4()  + 0x38 bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0x90 bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0xbd bytes	
 	NTDLL.DLL!_KiUserCallbackDispatcher at 12()  + 0x13 bytes	
 	USER32.DLL!_RepaintButton at 4()  + 0xa bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0x4c bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0x4c bytes	
 	gui.exe!wxWindow::MSWWindowProc(unsigned int message=0x0000001f, unsigned int wParam=0x00000000, long lParam=0x00000000)  Line 3207 + 0x1e bytes	C++
 	gui.exe!wxWndProc(HWND__ * hWnd=0x00010c2a, unsigned int message=0x0000001f, unsigned int wParam=0x00000000, long lParam=0x00000000)  Line 2490 + 0x1e bytes	C++
 	USER32.DLL!___ClientCharToWchar at 4()  + 0x38 bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0x90 bytes	
 	USER32.DLL!_InternalEnumProps at 16()  + 0xbd bytes	
 	NTDLL.DLL!_KiUserCallbackDispatcher at 12()  + 0x13 bytes	
 	USER32.DLL!_ChildWindowFromPoint at 12()  + 0x4e bytes	
 	USER32.DLL!_SetDeskWallpaper at 4()  + 0xa bytes	
 	gui.exe!wxEventLoop::Pending()  Line 217 + 0x14 bytes	C++
 	gui.exe!wxEventLoop::Pending()  Line 217 + 0x14 bytes	C++
 	gui.exe!wxEventLoopManual::Run()  Line 82 + 0xf bytes	C++
 	gui.exe!wxAppBase::MainLoop()  Line 299 + 0x17 bytes	C++
 	gui.exe!wxAppBase::OnRun()  Line 354 + 0x12 bytes	C++
 >	gui.exe!wxGui::OnRun()  Line 246 + 0x8 bytes	C++

__
Mail replies to/an V B A R T H E L D at G M X dot D E






More information about the wx-users mailing list