Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Leonardo M. Ram
That's true, because of that i don't use interfaces in FPC, instead i use virtual abstract classes. --- Inoussa OUEDRAOGO <[EMAIL PROTECTED]> wrote: > hi > I reported a bug for interface reference counting at > http://www.freepascal.org/mantis/view.php?id=7281 > > Bellow is the test program. >

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Inoussa OUEDRAOGO
hi I reported a bug for interface reference counting at http://www.freepascal.org/mantis/view.php?id=7281 Bellow is the test program. Regards, Inoussa. program test_intf; {$mode objfpc}{$H+} uses SysUtils; type ITest = interface procedure DoIt(AMsg : string); end;

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Graeme Geldenhuys
Yes I'm using fpc 2.1.1 with 40 bytes reported. Thanks for the update Vincent! PS: I'm grad to report that with my new found knowledge, fpGUI and fpGFX is now memory leak free! :-) Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Vincent Snijders
Jonas Maebe schreef: On 19 sep 2006, at 09:33, Graeme Geldenhuys wrote: So what is wrong with this code then... When I quit the app, it says I have one memory leak. What am I not freeing? If you compile the rtl with line info, you'll see the non-freed object is in the RTL: Call trace for

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Graeme Geldenhuys
Hi Michael, Try putting everyting in a procedure 'Test' and run that. I did that and still see the unfreed memory error. I think Jonas might be onto something. I used the tiBaseObject unit from tiOPF. It has memory leak detection (derived from the IndySOAP project), but only if your classes

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Jonas Maebe
On 19 sep 2006, at 09:33, Graeme Geldenhuys wrote: So what is wrong with this code then... When I quit the app, it says I have one memory leak. What am I not freeing? If you compile the rtl with line info, you'll see the non-freed object is in the RTL: Call trace for block $00187260 size

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Michael Van Canneyt
On Tue, 19 Sep 2006, Graeme Geldenhuys wrote: So what is wrong with this code then... When I quit the app, it says I have one memory leak. What am I not freeing? Try putting everyting in a procedure 'Test' and run that. Global variables (even temporary ones) may not yet have been deallocat

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Graeme Geldenhuys
So what is wrong with this code then... When I quit the app, it says I have one memory leak. What am I not freeing? - program memleak; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils; type

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Graeme Geldenhuys
On 19/09/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: Just add -gh to the compiler command-line. Run your project from a console, so you can see standard output. When the program is finished, it will give you a detailed list of memory leaks. Oops, so all the lines scrolling off the scr

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Michael Van Canneyt
On Tue, 19 Sep 2006, Graeme Geldenhuys wrote: Hi, How do you do memory leak detection using FPC? I know about the -gh parameter, but don't know how to use it, or with what other tools. I develop under Linux on x86. Just add -gh to the compiler command-line. Run your project from a consol

[fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Graeme Geldenhuys
Hi, How do you do memory leak detection using FPC? I know about the -gh parameter, but don't know how to use it, or with what other tools. I develop under Linux on x86. Regards, - Graeme - -- There's no place like 127.0.0.1 ___ fpc-pascal maillist