Hi everyone,
I am having a difficult time trying to solve some memory leaks (attached).
The first thing I did was to check -gh, -gl and all "Checks and Assertions" options in Lazarus project options. Also, I have Dwarf3 as debugger selected.
When I started, I noticed some easy to fix leaks, related to missing instances in destroy. Also, I fixed some missing "free" calls at program end.
But now, I am receiving some leak messages from Generics.Collections TFPList.Add, TFPObjectList.Add and also from SetLength, what does not make any sense for me right now.
A bunch of the messages in the attached log have traces starting at an EndTrial event, from SDLEvents singleton, an event handler class. For testing purposes, I tried calling the loop without passing through the event handler and memory leaks persisted. Any help will be much appreciated.