[wxPython] Re: Thread crash

Sorry about the zillion windows and I'll spare you the boring details of how
I tracked this down.
It fails for me with all versions of Python and did I mention I have a dual
processor machine ?

This fixes the problem by limiting Python to one CPU, and I'm fine with
that.

import win32process
import win32api
win32process.SetProcessAffinityMask(win32api.GetCurrentProcess(), 1)

When I get some time I'll have to get the source and look for this.

--Darrell

Robin wrote:

I saw that in the past the threading demo would fail and it still fails

for

me.
Using Python 2 on Win2K. Here`s some code that will produce some errors.

I don`t have things built for Python 2.0 right now, but on Python 1.5.2

your

program runs without crashing on my win2k system. It created several
thousand windows before I was able to get the task manager open and kill

it,

ยทยทยท

but it didn`t crash python. :wink:

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users