[python-win32] get active process list crashes

Radu Ciora raduciora at yahoo.com
Fri Aug 17 12:30:49 CEST 2007


Hi all, 

when I try to call  GetObject('winmgmts:') when an input event happens, I get the following exception:

  File "D:\DAProject\Workspace\context\inputhook\RDFIO.py", line 67, in wordInfo
    self.GetActiveProcess()
  File "D:\DAProject\Workspace\context\inputhook\RDFIO.py", line 71, in GetActiveProcess
    l_WMI = GetObject('winmgmts:')
  File "c:\Python24\Lib\site-packages\win32com\client\__init__.py", line 73, in GetObject
    return Moniker(Pathname, clsctx)    
  File "c:\Python24\Lib\site-packages\win32com\client\__init__.py", line 88, in Moniker
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147417843, 'An outgoing call cannot be made since the application is dispatching an input-synchronous call.', None, None)

Any help really appreciated.
 
Thanks a million,
Radu.




      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070817/46ee00cf/attachment.html 


More information about the python-win32 mailing list