I have recently come across code that starts a task within another task. This is in code I am to take over maintenance of.
There appeared to be an issue with the main thread being altered due to this and being set as a background thread when one of the tasks completed. This in turn locked up the GUI on the application.
Has anyone heard of this behaviour before?
I will not be giving an example of this particular problem, this is more of an information gathering exercise.
Up to now I have created ThreadWorker classes (as recommended by MS) to do my multi threading but will be using tasks in the future if there are no downsides.