Windows 8 Store app does not support Thread anymore:
I create a thread in class library:
protected static Thread m_thread = null;
Then in one of the functions:
m_thread = new Thread(new ParameterizedThreadStart(RunDetection));
m_thread.Start(Something);
I also need to abort the function:
m_thread.Abort();
How can I do this in a WIN8 store app?
You can run your thread procedure on the threadpool.
Aborting a thread has never been a viable option, as it could hang your entire process (abandoned lock, inconsistent global state).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With