المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Resource Leaks: Detecting, Locating, and Repairing Your Leaky GDI Code



C++ Programming
03-29-2009, 02:42 AM
Leaks are possible, even in robust Windows-based applications. As bugs go, leaks are some of the most difficult to find, especially when they occur in graphics device interface (GDI) objects and menus. While free and third-party tools exist to detect such leaks, it is usually difficult to make the connection between the numeric handle value returned by the tool, and a bitmap or menu in your program. This can limit the usefulness of these tools. Custom tools can be built that detect, track down, and eradicate GDI and menu leaks. Here, three such tools are built using well-known and documented APIs.

Christophe Nasarre

<a href="http://msdn.microsoft.com/magazine/d1fde243-36d0-4b6a-93e7-86c0a9c07c63">MSDN Magazine March 2001