.NET Core and More

VSH08 Internals of Exceptions

11/21/2019

9:30am - 10:45am

Level: Intermediate to Advanced

Adam Furmanek

Software Developer

Amazon

You know how to throw and catch exception. But do you know how are they implemented internally? Do you know what is SEH, VEH and VCH in Windows? Or do you know why C# introduced exceptions filters or how to catch everything, even StackOverflowException?

In this presentation I show internal mechanisms used by Windows for handling exceptions. We will see constructs used by C++ and C# languages, CLR instructions and machine code details of those. There will be some live debugging and low to high level code.

You will learn:

  • Understanding SEH mechanism used for exception handling
  • Comparing exception mechanisms in multiple technologies (C++, IL, C#, Java, Python)
  • Avoiding typical pitfalls when working with exceptions