I have a function that takes long to execute. So I had no choice but to run it in a separate thread. For that, I’ve been using Factory.Startnew() to create a background task. However, sometimes the task seems to be killed by something like a background handler.
I could not really track it down, because this doesn’t happen all the time. Is there any chance that a Factory.Startnew task gets killed?
Plus, if this can actually happen, then HOW do I stop this from happening? Also, I have heard of BackgroundWorker, would it help me fixing this problem?