I have a console application that contains quite a lot of threads. There are threads that monitor certain conditions and terminate the program if they are true. This termi
It sounds like you have the threads directly terminating the application? Perhaps it would be better to have a thread signal the main thread to say that the application should be terminated.
On receiving this signal, the main thread can cleanly shutdown the other threads and finally close itself down.