Today I had to fix some older VB.NET 1.0 code which is using threads. The problem was with updating UI elements from the worker thread instead of the UI-thread. It took me some
Use FIFOs. Lots of them. It's the ancient secret of the hardware programmer, and it's saved my bacon more than once.