Internals of Exceptions
summary
Examines Windows exception-handling internals: SEH, VEH and VCH, and how C++ and C# (including C# exception filters and CLR instructions) implement exceptions. Covers machine-code details and demonstrates live debugging to show how to catch unusual cases such as StackOverflowException.
AI-written summary · about
chapters (23)
- 0:00Intro
- 1:19Agenda
- 2:22Popular mechanisms
- 8:16Lower level mechanisms
- 10:02Finally during exit
- 11:25Stacktraces in .NET
- 15:15Catching everything
- 17:37Uncatchable exceptions in .NET
- 21:33Exceptions in async
- 22:47Exceptions in other threads
- 23:36Constrained Executed Region
- 25:50Exceptions as seen in WinDBG
- 33:23IL Metadata
- 37:51NET two-pass exception system
- 38:28Catching rules
- 39:01C# Exception filters
- 40:00Thread. Abort() behavior
- 40:30Thread. Abort() internals
- 41:54AccessViolation trickery
- 42:52AccessViolation origin
- 43:42Handling corrupted state in .NET
- 46:42Summary
- 49:25References
related talks
01h 01mInternals of Exceptions
01h 00mC# Language Internals
53mDeep .NET Debugging
51mAsync Internals in .NET
59mBuilding your own debugging toolbox with ClrMD
51mHidden Difficulties Implementing a Debugger for .NET WASM Apps
55mLet’s catch up with C#! Exciting new features in C# 9, 10, 11 and 12!
39mC# for C++ programmers, C# basics, C# vs. C++
