Книга: 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.
- Handling Exceptions
- Выражения в EXCEPTION
- Lesson Summary
- CHAPTER 21 Handling Electronic Mail
- Implementing Quotas
- Lesson 2: Implementing System Applications
- Handling HTML Forms
- Implementing RAID on Windows Server 2012 R2
- 2.3.7. Implementing the Client-Server Model
- 4.1.4. Implementing a Threads Package
- 5.2.6. Lessons Learned
- 9.2.4. Traps, Exceptions, and Interrupts