Communicating across threads in .NET/C#

By Dag, on December 30th, 2016

VB will commonly raise a debug error or program crash if you try to perform an operation (object or method call) on
another thread than its own directly. To solve that I used delegate and Invoke.
It lets you perform the operation asynchronously, this way it becomes indirect and does not
disturb the main thread structure, and maybe most importantly - considered thread-safe by the debugger.