Re: [fpc-pascal] heaptrc unit troubles with New() & Dispose() calls

2020-12-27 Thread Graeme Geldenhuys via fpc-pascal
On 27/12/2020 4:00 pm, Jonas Maebe via fpc-pascal wrote: > No. New and Dispose eventually result in calls to plain getmem/freemem > anyway. Thanks Jonas. I'll try and reproduce the original issue with a smaller example. It the issue still persists (can't determine the method causing the memory le

Re: [fpc-pascal] heaptrc unit troubles with New() & Dispose() calls

2020-12-27 Thread Jonas Maebe via fpc-pascal
On 13/12/2020 22:50, Graeme Geldenhuys via fpc-pascal wrote: > Are there any known issues with heaptrc unit via compiler parameters > -gl -gh, when using New() and Dispose() to manually allocate and free > memory. No. New and Dispose eventually result in calls to plain getmem/freemem anyway. Jon

[fpc-pascal] heaptrc unit troubles with New() & Dispose() calls

2020-12-13 Thread Graeme Geldenhuys via fpc-pascal
Hi, Are there any known issues with heaptrc unit via compiler parameters -gl -gh, when using New() and Dispose() to manually allocate and free memory. I helped someone debug their code, finding and fixing a memory leaks, but the FPC memory leak output, after the application terminates, did not me