I understand threads about as well as I understand women... so... I have a program I wrote, with the help of some experts that uses threads to run multiple calls to a database.
This program runs 24x7 and downloads orders from a website and enters them in quickbooks. after the order is downloaded, it updates the website with correct stock values for every item in the store. If the program stops in the middle of the night, we don't know about it until we come in next. Everytime it stops, it only requires a restart to make the thing work, so... I'd like to restart the program automatically everytime it stops.
I want to use Try / Catch to restart the application. But i'm not sure how to exit all the currently running thread to do that. After I exit all threads, I need to run this: btnEngageCode()
I'm not sure if I'm supplying enough information about the problem, please let me know if it doesn't make sense.