Chapter 24. Exception Handlers and Software Exceptions
An exception is an event you don’t expect. In a well-written application, you don’t expect attempts to access an invalid memory address or divide a value by 0
. Nevertheless, such errors do occur. The CPU is responsible for catching invalid memory accesses and divides by 0
, and it will raise an exception in response to these errors. When the CPU raises an exception, it’s known as a hardware exception. Later in this chapter, we’ll see that the operating system and your applications ...
Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.