[python-win32] Problem with service start type "auto"

2010-05-19 Thread Boris Perez Canedo
Hi everybody. I'm new in the list�and I'm not an english speaking person.�If you�see a lot of mistakes�please excuse me I'm trying my best. I have a compiled python�service which I can install, remove, start�and stop without errors (manually). The problem ocurrs when I change the start type and

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

2010-05-19 Thread Don Dwiggins
I'm developing a Python service under Win XP with Python 2.5 (the service is built on Twisted's XMLRPC server). For delivery to production, I "compile" it with py2exe. It's been running fine, but I've hit a snag. I've written new code to access a COM object (in a DLL); the code I've written

Re: [python-win32] Problem with service start type "auto"

2010-05-19 Thread Mark Hammond
I'd suggest that remove almost all code from your __init__ function, and instead put it all in SvcDoRun - once SvcDoRun has been called we have already reported success to the service control manager and taking a little time to, eg, enumerate the registry will not cause problems. HTH, Mark O