Hi there,<div><br></div><div><br></div><div>I got a code here to investigate and one big issue is that it uses threads and have a cleanup function (that will halt the threads) called via atexit. That all work fine with python 2.5 but when using python 2.6, if I have threading running, atexit never calls my cleanup function. If explicitly do cleanup(...) it works. If I have no threads on, atexit works too.</div>

<div><br></div><div>Any idea of how to debug this would very appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>Alan</div><div><br></div><div><div>Python 2.6.5 (r265:79063, May 13 2010, 15:11:52) </div>

<div>[GCC 4.2.1 (Apple Inc. build 5659)] on darwin</div></div><div><br></div><div><br>-- <br>Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>Department of Biochemistry, University of Cambridge. <br>80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>

>><a href="http://www.bio.cam.ac.uk/~awd28">http://www.bio.cam.ac.uk/~awd28</a><<<br>
</div>