Hi All,
I sent a copy of a new addin I am working on to Akyprian, who promptly discovered a resource leak. However the code involved was cut and pasted from the AddProc addin. Another of those stupid mistakes, I had the following 2 lines in reverse order:

Invoke SelectObject, hDC, hOldPen
Invoke DeleteObject, hPen

In the new addin under certain circumstances the code is called repeatedly hence the leak became apparent fairly quickly. In addproc it isn't, however here is the fixed version.
Posted on 2003-09-13 00:40:29 by andrew_k
Hi andrew_k,

Thanks for the fix.

Regards,

akyprian
Posted on 2003-09-13 02:38:40 by akyprian