Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit
Exception Handling
Exception Handling
Another important aspect that should not be ignored in asynchronous buffer access scenarios revolves around the possibility that embedded pointers might not point to valid memory addresses. For example, an application can pass a pointer to a driver that refers to an unallocated or reserved memory region, or it could asynchronously free the buffer. To ensure a reliable system and prevent memory leaks, you should enclose buffer-access code in a __try frame and any cleanup code to free memory allocations in a __finally block or an exception handler. For more information about exception handling, see Chapter 3, "Performing System Programming."
Оглавление статьи/книги
Похожие страницы
- CHAPTER 21 Handling Electronic Mail
- 9.2.4. Traps, Exceptions, and Interrupts
- Handling Name Server Lookups
- Chapter 10: Exceptions and Interrupts
- 10.5 Processing General Exceptions
- Chapter 12 Exception Handling
- Handling Exceptions
- Handling Exceptions Using the try-catch Statement
- Handling Multiple Exceptions
- Rethrowing Exceptions
- Exception Chaining
- Using Exception Objects