Re: Dynamic Array and Invalid Pointer
From: Rudy Velthuis (rvelthuis_at_gmx.de)
Date: 04/28/04
- Next message: Kai Inge: "Re: Persistent fields not so persistent?"
- Previous message: Michael Szuchy: "Re: How do I use a parameter/variable/string literal as an identifier?"
- In reply to: zdrakec: "Dynamic Array and Invalid Pointer"
- Next in thread: Maarten Wiltink: "Re: Dynamic Array and Invalid Pointer"
- Reply: Maarten Wiltink: "Re: Dynamic Array and Invalid Pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 22:02:00 +0200
At 20:53:03, 28.04.2004, zdrakec wrote:
> Alas, I have tried this also. Same result.
>
> Thanks,
> zdrakec
>
> "zdrakec" wrote in message
> news:39239f63.0404280742.2f560cc1@posting.google.com...
> [...]
> > If I attempt to free the [dynamic] array with
> >
> > (dtID := nil);
>
> That's no way to treat an array. An array is not a pointer, didn't
> anybody tell you? Just SetLength it to zero elements.
Er...
dtID := nil;
is a valid way of getting rid of (or actually, decrementing the reference
count of) a dynamic array. After all, a dynamic array *is* a pointer.
--
Rudy Velthuis
"Egotist: a person more interested in himself than in me."
- Ambrose Bierce (1842-1914)
- Next message: Kai Inge: "Re: Persistent fields not so persistent?"
- Previous message: Michael Szuchy: "Re: How do I use a parameter/variable/string literal as an identifier?"
- In reply to: zdrakec: "Dynamic Array and Invalid Pointer"
- Next in thread: Maarten Wiltink: "Re: Dynamic Array and Invalid Pointer"
- Reply: Maarten Wiltink: "Re: Dynamic Array and Invalid Pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|