Overview
Explore the intricate world of exception handling in this comprehensive conference talk. Delve into the internal mechanisms used by Windows for handling exceptions, from SEH, VEH, and VCH to the nuances of C# exception filters. Discover how to catch even the most elusive exceptions, including StackOverflowException. Examine constructs used in C++ and C# languages, CLR instructions, and machine code details through live debugging and analysis of low to high-level code. Gain insights into stacktraces in .NET, exceptions in async and multi-threaded environments, Constrained Executed Regions, and exception handling as seen in WinDBG. Investigate IL Metadata, the .NET two-pass exception system, catching rules, and C# exception filters. Learn about SEH exception mapping, handling corrupted states in .NET, and the intricacies of catching Stack OverflowException in C#. Enhance your understanding of exception internals to become a more proficient developer.
Syllabus
Intro
Popular mechanisms
Lower level mechanisms
One might ask...
Finally during exit
Stacktraces in .NET
Catching everything
Uncatchable exceptions in .NET
Exceptions in async
Exceptions in other threads
Constrained Executed Region
Exceptions as seen in WinDBG
IL Metadata
NET two-pass exception system
Catching rules
C# Exception filters
SEHException mapping
Handling corrupted state in .NET
Catching Stack OverflowException in C#
Summary
References
Taught by
NDC Conferences