[Twisted-Python] win32eventreactor freezing

2009-11-22 Thread Hugh Emberson
Hello, I have a small windows GUI program based on win32eventreactor and win32gui (from pywin32). It pops up a small dialog, gathers some information from the user, then makes an SSL connection to a server and sends the information. This program has been running on over 40 different systems (XP,

Re: [Twisted-Python] Creating a COM object in a thread

2010-06-30 Thread Hugh Emberson
The way I do this is I isolate all the COM stuff in a separate thread from thread that runs my reactor. This thread starts by calling:     pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) it then creates the COM object and runs an event loop something like this:     while keepRunnin

Re: [Twisted-Python] Creating a COM object in a thread

2010-07-05 Thread Hugh Emberson
On Tue, Jul 6, 2010 at 11:26 AM, Don Dwiggins wrote: > Hugh, >> The way I do this is I isolate all the COM stuff in a separate thread >> from thread that runs my reactor. > > This all looks good, and I think I understand it.  One question, though: > from my investigation, it seems that the hangup

Re: [Twisted-Python] Creating a COM object in a thread

2010-07-07 Thread Hugh Emberson
On Thu, Jul 8, 2010 at 9:44 AM, Don Dwiggins wrote: >  On 7/5/2010 10:53 PM, Hugh Emberson wrote: >> I got the order wrong. On further reading of the code, the COM object >> is created in response to a message from the Twisted thread, so at >> that point the event loop has i