Debugging Delphi programs by Cantu M.

By Cantu M.

Show description

Read Online or Download Debugging Delphi programs PDF

Similar programming: programming languages books

Prototype and Scriptaculous: Taking the Pain out of JavaScript

This brief lower demonstrates tips to use Prototype for a variety of initiatives, together with occasion dealing with, DOM processing, string and shape strategy, and Ajax communications. It explores Scriptaculous' visible results library, from pulsate to squish to fold and past. want interface elements? you will discover shape autocompletion in addition to drag and drop help.

Fast Track to Sun Certified Java Program

If you want to profit the hot beneficial properties in Java SE five. zero and go the sunlight qualified Java Programmer improve examination (CX-310-056), then this e-book is for you. It covers all of the Java SE five. zero new gains required within the examination. you do not need to examine the present beneficial properties that you just already recognize. 117 overview questions and ridicule examination questions are integrated.

Additional info for Debugging Delphi programs

Sample text

It was originally developed for Delphi 1 by Per Larsen as MemMonD32. After compiling your Delphi program, you simply run it through Memory Sleuth (loading and running it from this environment instead of from the Delphi IDE). The tool detects memory and Windows resource leaks, providing a detailed output with the source code lines causing problems. This tool hooks into the Delphi memory manager and monitors the allocation of Delphi objects but also checks the Windows memory status. Besides giving you a report about the problems, the program can also detect peak memory and resource usage, and even draw some nice graphs.

Aside from the memory information displayed, the program is not particularly interesting; you should add this form to one of your complex applications, so that you can test its memory status. 20: The Memory Status window of the simple VclMem example. You should add this window to your own programs to check how much memory they use over time. This program is a reduced version of a test example from Delphi Developer’s Handbook (Sybex, 1998). That book goes into more depth, discussing not only some cases in which the memory manager might cause problems but also how you can write a custom memory manager.

You might do that to replace Delphi’s memory management scheme with your own or to hook into the memory manager; for example, to count the number of memory blocks allocated and deallocated or checking for memory leaks. Third-Party Tools Delphi’s integrated debugger, the stand-alone Turbo Debugger, and the remote debugger are great for helping you to trace source-code errors, but they won’t help you much with memory problems, and they are still quite limited in some areas. Besides the techniques I’ve just discussed here, there are a few third-party tools that can be extremely helpful in tracing and solving memory problems and other debugging issues.

Download PDF sample

Rated 4.61 of 5 – based on 38 votes