Monday, 26 August 2013

Deleting GDI objects does not decrease their number

Deleting GDI objects does not decrease their number

When I look in the Task Manager on the number of GDI objects for my
process, then I see that not every call of function DeleteObject() for a
GDI object causes decrementing this number, and the function call does not
return FALSE (as it should if the object deletion was unsuccessful). I'm
using plain Windows API GDI functions without additional libraries and
wrappers such as MFC. Why such situation can happen and does it mean GDI
resource leakage?

No comments:

Post a Comment