I have written an application that uses threading to process files in a separate thread, another thread to monitor a directory and the third is the main thread. The thing is that when executed directly from the source the application works as expected, but when executed from the py2exe generated executable, those threads work in a random manner leading to non working threads at random.

1) Is there any incompatibility issue between py2exe and threading module?

2) Can changing windows to console do a difference? ( http://mail.python.org/pipermail/python-list/2004-August/277570.html)

3) What can I do to work this out?

4) Any idea you might have...

I'm really desperate since my boss is going to fire me if I don't fix it ASAP.

Best Regards,
Michel Peterson