Windows/COM events/strange behavior

Mark Hammond MarkH at ActiveState.com
Sat Oct 27 07:42:26 CEST 2001


Krzysztof Czarnowski wrote:

[I wrote]

>>What is the main loop doing.  It too should be sitting on a
>>PumpWaitingMessages() loop.  

...

> I really do observe the same behaviour with other apps (e.g. pfe file
> editor).
> 
> My main thread loop is doing (slightly simplified):
> 
> while 1:
>     event_stop.wait(3)
>     if event_stop.isSet(): break
>     if msvcrt.kbhit():
>         k = msvcrt.getch()
>         if k in ['s', 'S']: break
> 
> The PumpWaitingMessages() loop is executed in a child thread. In parallel
> another "CORBA child-thread" is working.


As I said, this main thread probably needs to be calling 
PumpWaitingMessages() each time around the loop.

Mark.




More information about the Python-list mailing list