FastMM5 icon indicating copy to clipboard operation
FastMM5 copied to clipboard

GDI leaks

Open stef-pellegrino opened this issue 5 years ago • 2 comments

Not a real "issue", but do you plan to check GDI problems too ? That would be great ;)

stef-pellegrino avatar May 09 '20 08:05 stef-pellegrino

Hi Stephane,

Thank you for the suggestion. It is something that has been requested before, so clearly there is a demand for it. There is also a bit of functional overlap with the capturing of stack traces and the reporting of leaks, so I agree it might be a useful addition. I'll investigate.

pleriche avatar May 10 '20 18:05 pleriche

I've noticed something new in that respect. An unknown change (OS Update?) lead to strange violations when a GDI+ handle was retrieved, the GraphicControl.Visible set to False and the GDI+ handle getting invalidated. This may be normal and expected, but wihout code change on my part, this now leads to random errors. Sometimes A.V., and sometimes Out Of Memory, sometimes a complete crash and disappearance of the Application itself. I've fixed it in code, to make sure the Control is still Visible before calling additional GDI+ calls. But just wondering about this request and what the impact would be for FastMM..

bcp-software avatar Feb 26 '21 11:02 bcp-software