55.6. Application Verifier

This tool allows the dynamic testing of unmanaged applications. It lets you troubleshoot handles, locks, and heaps. To configure it, go to the project properties window at the end of the Configuration Properties node and find the Application Verifier section as shown in Figure 55-5.

Figure 55.5. Figure 55-5

In this section you can specify if you want to conserve memory. If No is selected, a guard page will be inserted at the beginning or end of the allocation as selected in the Protection Location setting. These will detect buffer underruns and overruns.

The next three options specify how you want to handle the heap, handles, and locks. You have the options to disable the verification layer, break and log, log and continue, or simply break.

To start your program using Application Verifier, from the Debug menu select Start with Application Verifier. It will instrument your code and once it is run will verify different areas such as memory allocation and exceptions.

Get Professional Visual Studio® 2008 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.