<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have had the same problem, and I had to
do some kind of trick. I had also had a problem with the CPU usage, since
when such a script had been running, the CPU usage touched
100%. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My question : I still do not know why. Does
anybody?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyway, I have used the sys.settrace method. Each
time a line of Python code is executed, my OnTrace C++ function is being called.
I use yield to lower the CPU usage. You may check if the thread that called it
has to pause, an dyou may pause it till it is resumed. Just an
idea.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Stavros</FONT></DIV></BODY></HTML>