[fpc-pascal] Possible Memory Leak in TThread.Synchronize
Tony Whyman
tony.whyman at mccallumwhyman.com
Wed Jan 3 13:05:36 CET 2018
Thanks, I found the problem - the thread was not being destroyed
correctly on completion and this manifested itself in what looked like a
weird memory leak.
On 03/01/18 11:49, Michael Van Canneyt wrote:
>
>
> On Wed, 3 Jan 2018, Tony Whyman wrote:
>
>>
>> The line "Dispose(tmpentry);" also disposes of a SynchronizeEvent
>> but, unlike TThread.DoneSynchronizeEvent, there is no RtlEventDestroy.
>>
>> Am I correct in pointing the finger here for the memory leak?
>
> I doubt it, since AFAIK the RTL event is a OS object, and as such is
> not allocated on the
> heap ?
>
> Michael.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list