Re: [python-win32] Python service hangs in Dispatch when frozen with py2exe

2010-05-24 Thread Don Dwiggins
Mark, Thanks for the feedback. It might be worth making a call to pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED) in the thread which is doing this work. Yes, I've tried both apartment and multithreading models (building the DLL each way and using the corresponfing COINIT flag) -- no

Re: [python-win32] Python service hangs in Dispatch when frozen with py2exe

2010-05-24 Thread Mark Hammond
It might be worth making a call to pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED) in the thread which is doing this work. I *suspect* the problem will be related to when the import of pythoncom happens in the 2 environments - when it is first imported, it will call CoInitialize for

Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread George Doster
On Mon, May 24, 2010 at 8:25 AM, Mark Hammond wrote: > On 22/05/2010 12:15 AM, George Doster wrote: > >> Hello All, >> >> I'm trying to write a Python program that uses a provided ActiveX >> component. I have verified the component works ok with Visual Basic. >> >> I have used makepy to build the

Re: [python-win32] Python service hangs in Dispatch when frozen with py2exe

2010-05-24 Thread Don Dwiggins
OK, I have more information that may help. Looking into the code invoked by IA.clsAuthorizeBatch(), I've found that the hangup occurs in the call to pythoncom.new in CoClassBaseClass in win32com\client\__init__.py. Interestingly, if I run the code in the "main" Twisted thread, it executes wi

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Bill Janssen
Tim Roberts wrote: > Bill Janssen wrote: > > I'm actually not passing file names. I'm passing argument strings, > > which may contain spaces, quotes, and other things. For instance, > > > >myprogram --title="That's the game! says Mike "Hammer" Brotsky" > > --file=... > > > > "myprogram" is

Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread Vernon Cole
If I Recall Correctly, the ActiveXCtrl class in wxPython does not use the pywin32 tools, but a different package. That, along with no plans to migrate to Python 3, is why my own work is migrating away from wxPython. Too bad, too. I rather liked wxPython. -- Vernon Cole On Mon, May 24, 2010 at 7:

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Tim Roberts
Bill Janssen wrote: > I'm actually not passing file names. I'm passing argument strings, > which may contain spaces, quotes, and other things. For instance, > >myprogram --title="That's the game! says Mike "Hammer" Brotsky" --file=... > > "myprogram" is a Python program, and expects to get th

Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread Mark Hammond
On 22/05/2010 12:15 AM, George Doster wrote: Hello All, I'm trying to write a Python program that uses a provided ActiveX component. I have verified the component works ok with Visual Basic. I have used makepy to build the import module for my ActiveX component. I can successfully load the com