win32gui.SetWindowLong(GWL_WNDPROC)

Thomas Heller thomas.heller at ion-tof.com
Thu Nov 22 16:02:49 EST 2001


Are there any issues with win32gui.SetWindowLong(hwnd, GWL_WNDPROC, proc)?

I've both tried a dict or a callable as proc, both should be allowed
according to the docs. Executing the above code works fine, but
as soon as the first WM_xxx message is dispatched to proc, Python
crashes:

  Fatal Python error: PyThreadState_Get: no current thread

  abnormal program termination

No, I've not mixed debug and release builds.
I'm using ActiveState Python 2.1.1, build 212.

Thomas





More information about the Python-list mailing list