Thread is failing with no error and I have no idea why
Posted on 2007-11-19
I am beating my head into the wall i this and cannot find an answer. i am hoping someone can tell me where i am being stupid.
I have a process that is designed to process incoming FTP files. I want to dispatch this to different threads so big files don't hamper or delay the little ones.
I have tested all my logic on the main thread and it works perfectly.
I have added a function call that creates a seperate thread and calls the function for processing. pretty easy right.
The thread aborts or disappears when it makes a call to a web service that i have. I have no idea why it just goes poof (that is my technical term for it). Let us not forget, the exact same code works perfectly in the main thread.
Where do i look, what am i forgetting.
oh yea if i put a simple while loop in the thread right before the web service call the thread runs and runs just fine. of course it is no good to me because it is just printing out a debug statement.
any and all help is greatly appreciated.