[fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

Marcos Douglas md at delfire.net
Thu Oct 6 03:34:07 CEST 2016

On Wed, Oct 5, 2016 at 6:51 PM, Graeme Geldenhuys
<mailinglists at geldenhuys.co.uk> wrote:
> On 2016-10-05 16:26, Marcos Douglas wrote:
>> Here is the output on my machine (Lazarus 1.7 r52880M FPC 3.0.1
>> i386-win32-win32/win64)
> Just so you know... bug or not, it seems to have the same behaviour as
> with Delphi 7. Compiled with D7 it has the exact same output. In fact,
> compiled with Delphi 7, the app doesn't quit at all. I had to Ctrl+C it.
> [...]
> Ignore that bit... Looking at the code in detail I see there was a
> ReadLn statement at the end. Dope! :)

But, the result was the same, even using D7.
So, is this by design? Sad...

Marcos Douglas

More information about the fpc-pascal mailing list