Terminating Threads
Hi. All. I have an application that does mass data importing from xls,txt and access files into a sql server using threads. i use messaging to inform the user via progressbar at what point were are in the import as well to let them know when an error has occurred.
The thread just will not stop. I have found that even after the thread encounters an error and i have sent and error message to the main thread to inform the user of what has happened the thread does not die and actually tries to execute the code that follows the point of error. [just so you know, I used the exit function to stop the thread when there is an error,].However this does not seem to be effective! i have also tried to let the main function terminate the thread by sending a [WM_SOS message to the main thread ] this seems to be a slow process by the time the main thread gets the message the thread has already gone terminal i.e.[ doing everything after the error point]
any Suggestions?
Anything or Anyone that fails to grow will eventually die. {AI}
-------------------------------------------------
Tomorrow is the future!
Today Is the Tomorrow you made Yesterday!{AI}