Posted on 1998-12-15
smart check uncovered a resource leak error in my creation
of logical fonts. before i call createfont, i have this:
if fonttouse<>0 then
rc = deleteobject(fonttouse)
fonttouse = 0
i tried tracing the value of fonttouse, after the deleteobject line
the value of fonttouse still remained, that's why i added the
"fonttouse = 0" line.
does anyone know how deleteobject really works? i don't know
why the value of fonttouse remains after that function is called.
by the way, i got that part from dan appleman's winapi book,
chapter 11 - fonts.
any help welcome
thanks in advance
merry christmas to all