[python-win32] servicemanager.pyd still in use afterservicetermination

Mark Hammond mhammond at skippinet.com.au
Thu Dec 2 13:43:28 CET 2004


> Yes, I've noticed this too. In this situation 
> servicemanager.pyd is held
> by mmc.exe. However, I can reproduce the behaviour I described even
> after a reboot and without launching the event viewer. If my service
> raises an exception in SvcDoRun then servicemanager.pyd ends up being
> held by a process called Wmiprvse.exe

My guess us that this process has the DLL open for the exact same reason -
ie, any process using the eventlog APIs could well cause this, and WMI
certainly has that capability.

I suspect that any DLLs referenced by the event-log will also be in use, so
the problem may not be Python specific at all.  The question you may need to
answer is simply why this process has the event-log open on your box.

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 1980 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-win32/attachments/20041202/acba9a37/winmail.bin


More information about the Python-win32 mailing list