Re: wx.PyEvent cloning
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok, I wasn't thinking things all the way through yesterday. It is working as expected and the event should be cloned before giving it to the worker thread. Basically, Clone is called when wx.PostEvent is called, and the clone is put on the pending event queue. Later, after the event has been processed and its event handler returns, it is removed from the queue and that destroys the C++ object for the cloned event. In your example it appears that it is happening when the thread blocks momentarily for setting the busy cursor. Robin On Wednesday, April 5, 2017 at 9:09:35 PM UTC-7, James Wettenhall wrote: > > Robin, > > Thanks for the prompt reply. > > Small runnable sample posted here: > https://github.com/wxWidgets/Phoenix/issues/265 > > Cheers, >> >> James > > -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.