[python-win32] win32gui.EnumWindows does not work on workerthreads

Roger Upole rupole at hotmail.com
Wed Feb 6 12:57:21 CET 2013


What version of Pywin32 are you running ?  There was a recent change to fix a problem with
win32gui.EnumWindows in build 218.

     Roger

"Radu Savutiu" <rsavutiu at gmail.com> wrote in message news:CABJn2YikLtaKUggLR7Fmh2Gbc7vU+OHf_gac8KP3iYwNw3yLLw at mail.gmail.com...
>I appreciate answers received, however none worked for me. It turned out
> replacing win32gui.EnumWindows with ctypes.windll.user32.EnumWindows - and
> then it worked.
>
> Maybe there is an error with win32gui's implementation?
>
> The code is really vast, I can't post it.
>
>
> On Mon, Jan 28, 2013 at 5:34 PM, Radu Savutiu <rsavutiu at gmail.com> wrote:
>
>> Hi all,
>>
>> I have multiple scripts in which i used win32gui.EnumWindows.
>> So far they all worked - but now it seems they pause on this call to
>> EnumWindows.
>>
>> I suspect this has nothing to do with pythoncom, as I use CoInitialize
>> there and it works.
>>
>> Any ideas?
>>
>


--------------------------------------------------------------------------------


> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
> 





More information about the python-win32 mailing list