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

Tim Roberts timr at probo.com
Tue Jan 29 01:55:44 CET 2013


Radu Savutiu wrote:
>
> 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.

No, it has nothing to do with COM.  EnumWindows is a GDI call.

EnumWindows does nothing but stroll through a data structure.  It cannot
pause.  It's more likely that your callback is doing something time
consuming.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list