Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Lesson 4: Implementing Exception Handling

Target devices running Windows Embedded CE include exceptions as part of system and application processing. The challenge is to respond to exceptions in the appropriate manner. Handling exceptions correctly ensures a stable operating system and positive user experience. For example, instead of unexpectedly terminating a video application, you might find it more useful to prompt the user to connect a Universal Serial Bus (USB) camera if the camera is currently disconnected. However, you should not use exception handling as a universal solution. Unexpected application behavior can be the result of malicious code tampering with executables, DLLs, memory structures, and data. In this case, terminating the malfunctioning component or application is the best course of action to protect the data and the system.

After this lesson, you will be able to:

? Understand the reason for exceptions.

? Catch and throw exceptions.

Estimated lesson time: 30 minutes.

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


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