I have an empty project (it contains just a form). If I add this line to the project ‘USES GR32_Image;’ and run the application, FastMM shows leak in the program. FastMM is set to full debug. There is NO code in my program – except what Delphi IDE generates and except the ‘uses gr32’ line.
The report makes no sense.
Here is the full log: http://pastebin.com/Yhev3rJ2
And here is the source code: http://pastebin.com/VjRrRiS8
I have used the Graphics32 unit before and I never had problems. Why I have this leak and why FastMM cannot generate a proper report?
Compile your app with full debug info, then in the linker options, make sure your debug info is in the .EXE and/or .MAP file.
Then run FastMM with FullDebugMode, and copy/paste the resulting .TXT file in your question.
See also this post for more tips.
Edit:
A good first step is to do something like this on your .TXT file:
That gives you the first allocation number, in your case
281.From that, you search in the .TXT for the allocation number:
Here you can see, that the
NewRegistryis involved in your leak.From there, you can start debugging to find out why it leaks.
–jeroen