On Fri, 27 Jun 2014 14:48:31 +0200
Petr Hlozek <p...@ok2cqr.com> wrote:

> Thank you for the help!
> 
> I added to all autocreated and used form into OnDestroy what you've
> writen to me, in Project -> Option -> Debugging checked the -gh
> option, Run -> Ru parameters in Environment tab added  HEAPTRC
> variable.
> 
> After the crash, the callstack window shows
> 
> #0 HEAPTRC_TRACEFREEMEMSIZE$POINTER$QWORD$$QWORD at :0

This could mean that you double free an object/record.
Make sure all references become nil when an object is freed.

 
> When I click to View source, it jumps to the top of the heaptrc unit.

If there are other lines (not #0, but #1, #2, ...) click on them.

 
> When I run the app from terminal with environment variable set, I got this:
> 
> An unhandled exception occurred at $000000000044139A :
> EAccessViolation :
>   $000000000044139A
>   $00000000005DDD29
> 
> The same like before :(

Something destroys your heap.
Have you tried gdb?

Heaptrc has some more options.

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to