C++
Article: Compuware,
BoundsChecker, Tracking GDI resource memory leaks
|
|
Plenty of tools exist to help
track down memory
leaks. You've got the debug heap, Rational Purify for Windows, HeapAgent, and other
tools. But there aren't any good tools to help
track GDI resource leaks. A
resource leak can crash the system under Windows 95 or Windows 98, and can ruin performance on any Windows operating system.
The article "Resource
Leaks: Detecting, Locating, and Repairing Your Leaky GDI
Code" is the only real help I've found. In particular, the
article includes a program that
tracks current globally allocated resources under Windows 95 or Windows 98. You can track what resources were created between a start and stop points, and display what those resources are. Check the
article for the download (Leaks.exe).
Update 2003-01-10: The very friendly people at Compuware have pointed out that
BoundsChecker will detect
GDI resource leaks.
If you're fighting GDI leaks, it might be worth checking out. At the moment it appears to carry a $695 price tag. They offer a trial period. (Regrettably of the "give us your contact info and we'll contact you about a trial" type.)
|