[Lazarus] SIGSEGV with Debug only

Martin lazarus at mfriebe.de
Fri Mar 30 17:55:40 CEST 2012


On 30/03/2012 16:11, Daniel Simoes de Ameida wrote:
> Bingo...
>
> Is the HeapTrace.. I just removed HeapTrace Unit from Linking and the 
> problem has gone...

No it has not gone.

It is only hidden. That means you lowered the likelihood of it happening.

The code still accesses an object that does not exist. That means random 
memory.
Without heaptrc, you simple got better likelihood, that this random 
memory contains data, that does not cause a crash.
But the bug is still there. It may still crash...

Since it happens at form close, maybe you freed some component in your code?
Changed owner of a component (moving to other form)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120330/80e853ba/attachment-0003.html>


More information about the Lazarus mailing list