Re: [Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Hans-Peter Diettrich
Petr Hlozek schrieb: I'd like to do that and hopefuly already did but the app is quite big and I'm not sure fo 100%. Is there any way how to find out with any utility? FastMM4 can do that with Delphi, dunno about an FPC version. It can detect references to already destroyed objects, as well a

Re: [Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Petr Hlozek
>> 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_TRACEFREEMEMSIZ

Re: [Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Mattias Gaertner
On Fri, 27 Jun 2014 14:48:31 +0200 Petr Hlozek 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. >

Re: [Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Petr Hlozek
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_TRACEFREEMEM

Re: [Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Mattias Gaertner
On Fri, 27 Jun 2014 11:33:53 +0200 Petr Hlozek wrote: > Hi, > > I have an Linux app, it has over 76k lines of code, 78 Forms and uses threads. > After I close the app, it always crashes in > > function TScreen.GetCustomFormsZOrdered(Index: Integer): TCustomForm; > begin > Result := TCustomFor

[Lazarus] App crash at TScreen.GetCustomFormsZOrdered

2014-06-27 Thread Petr Hlozek
Hi, I have an Linux app, it has over 76k lines of code, 78 Forms and uses threads. After I close the app, it always crashes in function TScreen.GetCustomFormsZOrdered(Index: Integer): TCustomForm; begin Result := TCustomForm(FCustomFormsZOrdered[Index]); end; The index variable value is someth