i installed 2.3 last week and now i got a debug message.
if i close a Dialog with ALT-F4 i receive this msg:
"..\msw\dialog.cpp(534): assert failed, wxDialog destroyed twice
Do you want to stop the program?
You can also choose [Cancel] to supress further warnings"
Please. Can someone tell me why i get this msg?
thx, reen
···
----
Rene Freund nur ein toter bug ist ein guter bug rene@meder.de
i installed 2.3 last week and now i got a debug message.
if i close a Dialog with ALT-F4 i receive this msg:
"..\msw\dialog.cpp(534): assert failed, wxDialog destroyed twice
Do you want to stop the program?
You can also choose [Cancel] to supress further warnings"
Please. Can someone tell me why i get this msg?
Please send a small sample that shows the problem.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
i installed 2.3 last week and now i got a debug message.
if i close a Dialog with ALT-F4 i receive this msg:
"..\msw\dialog.cpp(534): assert failed, wxDialog destroyed twice
Do you want to stop the program?
You can also choose [Cancel] to supress further warnings"
Please. Can someone tell me why i get this msg?
I had exactly the same error message when I upgraded. The problem was that I was calling wxDialog.Destroy() twice in succession, like this:
dialog = MyDialog(parent, prompt)
while true:
result = dialog.ShowModal()
if result == wxID_OK:
result = dialog.getResult()
dialog.Destroy()
break
else:
result = -1
break
dialog.Destroy()
return result
Earlier versions of wxPython didn't throw assertions, so this error went unnoticed. The new version is simply pointing out a problem that was in your code all along...