[wxPython] wxPostEvent Crash

timr@probo.com 07/31/02 01:17PM >>>

My application is almost totally event driven since it's very asynchronous.
It basically requests data from server,then posts an event to the
requesting window when the response arrives. The response can arrive in
several pieces over several minutes.

The problem is that Python crashes (Dr. Watson) if the window no longer
exists.

I was hoping wxPython would gracefully just eat the event rather than
crash. I can work around this in my app, but was wondering if this is the
intended behavior.

It turns out that Robin's suggestion to use myWindow.AddPendingEvent() appears
to work fine. It throws an exception that the code can handle rather than blowing
up. It requires using wxPython 2.3.3 though (appears to blow up differently
under 2.3.2.1).

Garry

···

On Tue, 30 Jul 2002 12:44:50 -0400, "Garry Simmons" <simmonsg@symbol.com> wrote:

-------------------------------------
Garry Simmons
simmonsg@symbol.com

It turns out that Robin's suggestion to use
myWindow.AddPendingEvent() appears to work fine. It throws
an exception that the code can handle rather than blowing
up. It requires using wxPython 2.3.3 though (appears to blow
up differently under 2.3.2.1).

Yes that is a new 2.3.3 feature. I thought that your origional message said
you were using 2.3.3pre5.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!