RE: [fpc-pascal]Constructor failing...

2003-03-21 Thread paradice
But, when I use fail in my simple example program, it returns NIL okay but the Heaptrace function tells me I have two unfreed memory blocks (36 bytes). I can't see a memory leak anywhere else in that program, what could cause this? (Heaptrace output is as follows: I am using FPC 1.0.6

RE: [fpc-pascal]Constructor failing...

2003-03-21 Thread Peter Vreman
But, when I use fail in my simple example program, it returns NIL okay but the Heaptrace function tells me I have two unfreed memory blocks (36 bytes). I can't see a memory leak anywhere else in that program, what could cause this? (Heaptrace output is as follows: I am using FPC 1.0.6

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Anton Tichawa
On Friday 21 March 2003 12:29, you wrote: But, when I use fail in my simple example program, it returns NIL okay but the Heaptrace function tells me I have two unfreed memory blocks (36 bytes). I can't see a memory leak anywhere else in that program, what could cause

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Peter Vreman
On Friday 21 March 2003 12:29, you wrote: But, when I use fail in my simple example program, it returns NIL okay but the Heaptrace function tells me I have two unfreed memory blocks (36 bytes). I can't see a memory leak anywhere else in that program, what could cause

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Michael Van Canneyt
On Fri, 21 Mar 2003, Anton Tichawa wrote: On Friday 21 March 2003 13:09, you wrote: On Friday 21 March 2003 12:29, you wrote: But, when I use fail in my simple example program, it returns NIL okay but the Heaptrace function tells me I have two unfreed memory blocks

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread James Mills
On Fri, Mar 21, 2003 at 02:04:39PM +0100, Michael Van Canneyt wrote: On Fri, 21 Mar 2003, Anton Tichawa wrote: On Friday 21 March 2003 13:09, you wrote: On Friday 21 March 2003 12:29, you wrote: But, when I use fail in my simple example program, it returns NIL okay but

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Anton Tichawa
On Friday 21 March 2003 14:02, you wrote: On Fri, Mar 21, 2003 at 02:04:39PM +0100, Michael Van Canneyt wrote: On Fri, 21 Mar 2003, Anton Tichawa wrote: On Friday 21 March 2003 13:09, you wrote: On Friday 21 March 2003 12:29, you wrote: But, when I use fail in my simple example

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Michael Van Canneyt
On Fri, 21 Mar 2003, Anton Tichawa wrote: On Friday 21 March 2003 14:02, you wrote: On Fri, Mar 21, 2003 at 02:04:39PM +0100, Michael Van Canneyt wrote: On Fri, 21 Mar 2003, Anton Tichawa wrote: On Friday 21 March 2003 13:09, you wrote: On Friday 21 March 2003 12:29, you wrote:

RE: [fpc-pascal]Constructor failing...

2003-03-20 Thread Peter Vreman
Hi again - another question; what is the best way to fail a constructor call? For example, I have a constructor timage.loadimage(), and I want it to return nil if it encounters a problem (e.g. the file name doesn't exist). My Use fail :-) But, when I use fail in my simple

Re: [fpc-pascal]Constructor failing...

2003-03-20 Thread Anton Tichawa
On Thursday 20 March 2003 09:27, you wrote: Hi again - another question; what is the best way to fail a constructor call? For example, I have a constructor timage.loadimage(), and I want it to return nil if it encounters a problem (e.g. the file name doesn't exist). My

Re: [fpc-pascal]Constructor failing...

2003-03-19 Thread Peter Vreman
Hi again - another question; what is the best way to fail a constructor call? For example, I have a constructor timage.loadimage(), and I want it to return nil if it encounters a problem (e.g. the file name doesn't exist). My Use fail :-) ___

RE: [fpc-pascal]Constructor failing...

2003-03-19 Thread paradice
Hi again - another question; what is the best way to fail a constructor call? For example, I have a constructor timage.loadimage(), and I want it to return nil if it encounters a problem (e.g. the file name doesn't exist). My Use fail :-) But, when I use fail in my simple example