Thank you very much for the response!
Unfortunately the crashes came back, even with the wxYield(). The crashes only happen more or less randomly when executing a certain operation. Sometimes the 1. time, sometimes the 5. time, sometimes the 15. time. Only with Windows98, and only if the stuff which gets destroyed and rebuilt is on a notebook page.
The program crashes only after the event handler returns control to the main loop. I added print statements to all my event handlers, and none of these is called after the destroy/rebuild operation.
So here is my new question: how can one enable the "Debug" button in Window's "Illegal operation" dialog for wxPython?
I case compiling is the only option, I have VC++ 6.0. What experience did people have following the instructions at Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub?
Thanks,
Ralf
···
--
On 11 Sep 2000 17:35:05 -040 David Bolen wrote:
"Ralf Grosse-Kunstleve" <rwgk@my-Deja.com> writes:
Are there general recommendations for inserting wxYield() after
certain types of operations? Similarly, are there places where one
would better not insert wxYield()?I don't think as a matter of course you should need to do anything
like this, but would need to know more about the code (and structure of
objects) in question in this case.If I had to guess, I'd say that you had established event handlers
that were being triggered in some way by the objects you were
destroying, such that you ended up destroying an object and later
(back in your main event loop) tried to process the pending event to
the now non-existent object. By adding the wxYield(), you permitted
the event to be processed prior to destroying the target object.Now, depending on the structure you have, I suppose that might be
valid (although I'm not sure how deterministic, in case there are
other pending events for some other object), but it's hard to say in
the abstract.--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l@fitlinxx.com /
> FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.