access violation when posting an event from a thread

Thomas Zehbe tz at thomas-zehbe.de
Thu May 1 03:43:39 PDT 2008


Am Mittwoch, 30. April 2008 schrieb Vadim Zeitlin:
>  If it crashes in GetHWND() the window pointer (this is not the "win" above
> but the pointer returned by wxApp::GetTopWindow() from looking at
> WakeUpIdle() code) must be bad. Maybe the frame was closed in the meanwhile
> or something like that?
Thanks Vadim, indeed the pointer was bad. For unknown reason i did this in 
OnInit():
	SetTopWindow(mainWindow);
	mainWindow = new SamFrame( NULL );
Obviously the wrong sequence :).  It's a bit curious that it worked under 
Linux.

Regards,
Thomas

>
>  Regards,
> VZ



-- 
Dipl.-Ing. Thomas Zehbe
Kuhweide 6
31552 Apelern


More information about the wx-users mailing list