Hello. I need to immediately kill a running thread in C# when the user clicks a command button. The thread migrates data from an Access database one row at a time and massages that data before moving into SQL server. How do I IMMEDIATELY kill that thread without using Thread.Abort (which waits for a "safe" exit point)? In other words, I need a command or function or P/Invoke call that I can use to stop thread processing absolutely immediately. I can clean up resources and locks myself after the thread has been killed but I cannot wait for Thread.Abort to do its thing.
Thanks in advance for any assistance.