Home

Welcome To The Journal

Latest from the Blog

How Interlocked Ensures Atomicity

2025-03-18 This article was created with the assistance of ChatGPT Low-Level CPU Instructions: The Interlocked class uses atomic CPU instructions that are executed as indivisible units. These CPU instructions, like Compare-and-Swap (CAS) or Test-and-Set, ensure that the operation is performed entirely or not at all, with no interference from other threads. These instructions are implemented…

Understanding Stack Frames in .NET

2025-03-18 This article was created with the assistance of ChatGPT What is a Stack Frame? A stack frame is a data structure created on the call stack whenever a method is invoked. It holds all the necessary information for a method to execute and return correctly. Each thread in a .NET application has its own…

Solved: The destination thread no longer exists exception – C#

2016-11-08 You will get System.ComponentModel.InvalidAsynchronousStateException (The destination thread no longer exists.) if a UI component gets disposed or the UI thread EXITs while a different thread is in the middle of invoking a change on the same UI component. This usually happens when a user closes a window (form) that has been updated by a…

Get new content delivered directly to your inbox.