[python-win32] PumpMessages in main thread called by embedded Python causes crash

2012-04-28 Thread reckoner
I have written some code that catches windows events that also includes the usual PumpMessages, and all of this works fine when I run it from the Python interpreter (Python version 2.6). However, when a separate application that has Python embedded calls the same code, the calling applicatio

Re: [python-win32] PumpMessages in main thread called by embedded Python causes crash

2012-04-28 Thread Mark Hammond
I don't know why it crashes exactly, but if the other app has its own event loop then things are going to get screwey - PumpMessages never returns (well, not until a WM_QUIT message is received), so their event loop will never run. I'd guess that their event loop and event handlers have some a