Chapter 23. Termination Handlers
In this chapter: |
Close your eyes for a moment and imagine writing your application as though your code could never fail. That’s right—there’s always enough memory, no one ever passes you an invalid pointer, and the files you count on always exist. Wouldn’t it be a pleasure to write your code if you could make these assumptions? Your code would be so much easier to write, to read, and to understand. No more fussing with if
statements here and goto
s there—in each function, you’d just write your code top to bottom.
If this kind of straightforward programming environment seems like a dream to you, you’ll love structured exception handling (SEH). The virtue of SEH is that as ...
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.