Книга: 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."

Оглавление книги

Оглавление статьи/книги

Генерация: 5.487. Запросов К БД/Cache: 2 / 0
поделиться
Вверх Вниз