I have a windows service that I am working on, and it crashes any time I throw any kind of exception from a secondary thread (not the main thread). I googled for at least a half hour looking for the answer to this, but found nothing. I am compiling with the -mthreads command line option, which is supposed to help, but it makes no difference. I have now spent about 3 hours on this problem alone, and I absolutely cannot move on until it is resolved, as the remainder of my program will use exceptions, and must not crash.
windows threading API functions _beginthreadex, etc
windows XP Pro x64