bug in wxCreateHiddenWindow function
Eran Ifrah
eran.ifrah at gmail.com
Fri Aug 24 16:10:26 PDT 2007
Hi,
I found a bug in wxCreateHiddenWindow function.
I tried to call wxExecute from within a dll (does it matter?), however I am
getting an assertion
'failed to create hidden window for wxExecute'. Stepping into WX sources, I
found the bugged line:
at utils.cpp, line 1533 (in function wxCreateHiddenWindow()):
if ( !::RegisterClass(&wndclass) )
{
[...]
}
the above condition should be modified to:
if ( !::RegisterClass(&wndclass) && GetLastError() !=3D
ERROR_CLASS_ALREADY_EXISTS )
I have tested it and with my fix, the code works properly (I am getting the
process termination event).
I am using wx2.8.4 distribution, on Windows XP sp2, Using VS7.1
Thanks,
-- =
Eran Ifrah
eran.ifrah at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070825/6b7=
d3493/attachment.htm
More information about the wx-users
mailing list