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:

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

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 > > >

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

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

2003-03-21 Thread Anton Tichawa
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 > >> > >> (36 > >> > >> >>

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 pr

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

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 a

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

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.

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,

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

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 :-) __

[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 example program is this: type mytestclass= class bo