Debugging Visual C++ Windows by Keith Bugg

By Keith Bugg

Comprehend and keep watch over the computer virus cycle! This designated machine reference, offers instructional established examples on easy methods to debug home windows functions built with visible C++. you'll get a conceptual version for fighting and getting rid of insects throughout the layout cycle that comes with feedback on id, prevention and correction for every of the 4 forms of insects: * assemble time insects * run time mistakes * good judgment and layout mistakes * computing device error Debugging visible C++ home windows examines the various elements that obliquely have an effect on debugging. It incorporates a assessment of reliable undertaking making plans and administration techniques, trying out plans, and recognized compiler insects. you'll learn the way compiler instruments comparable to hint, undercover agent, and tension paintings. and you'll realize tips on how to visual display unit reminiscence operations on your software because it executes - whereas viewing the consequences 'real time' on your debug window! additionally incorporated is a serious assessment of the debugging instruments that send with visible C++, in addition to, advertisement debuggers corresponding to BoundsChecker and CodeWizard. pointers on debugging database functions also are supplied (appendices are supplied on ODBC errors codes and SQL kingdom values). The significant other disk includes workspace/projects demonstrating reminiscence kingdom checking, mistakes message retrieval, compiler insects, and the way to exploit the #pragma compiler directive, ASSERT and hint.

Show description

Read or Download Debugging Visual C++ Windows PDF

Similar programming: programming languages books

Effektiv Java programmieren : [57 Regeln für eine professionelle Java-Programmierung]

Java-Handbücher neigen zum Wuchern und enden oftmals als fette Backsteine zum Abstützen anderer Bücher im Regal. Wer liest schon 1. two hundred Seiten wirklich durch? Da fällt ein Java-Buch von etwas über 2 hundred Seiten schon ins Auge. Beim Java lernen ist es nicht mit einer umfangreichen Referenz der Sprache selbst getan -- die Denke und die Konzepte dahinter wollen auch verstanden und umgesetzt werden.

Additional info for Debugging Visual C++ Windows

Sample text

By default, a process can lock a maximum of 30 pages. The default limit is intentionally small to avoid severe performance degradation. Applications that need to lock larger numbers of pages must first call the SetProcessWorkingSetSize function to increase their minimum and maximum working set sizes. The maximum number of pages that a process can lock is equal to the number of pages in its minimum working set minus a small overhead. This suggests that SetProcessWorkingSetSize() and VirtualLock() have linked functionality.

The PAGE_GUARD flag, and some others, are set in the allocation functions VirtualAlloc(), VirtualProtect(), and VirtualProtectEx(). This flag can be used with any other page-protection flag, with the exception of the NO_ACCESS flag. Because the guard page exception occurs only once, it is a one-shot alarm. Nevertheless, it can be useful in preventing bugs, especially for applications that use large dynamic data structures, which are < previous page page_27 next page > < previous page page_28 next page > Page 28 subject to resizing (for example, as in database record retrieval).

You'll be pleasantly surprised to learn there are a lot of weapons in the Visual C++ debugging arsenal. Let's start by looking at assertions. Assertions An assertion is somewhat difficult to define precisely, but basically it's a way of testing if a piece of code is valid. This is accomplished using the ASSERT macro, and you can (and should) be generous with its usage. This macro is valid only when you are running a debug version of your program; it's < previous page page_37 next page > < previous page page_38 next page > Page 38 ignored completely under release.

Download PDF sample

Rated 4.61 of 5 – based on 26 votes