On 12 Nov 2008, at 22:46, Marc Santhoff wrote:
Am Mittwoch, den 12.11.2008, 22:30 +0100 schrieb Jonas Maebe:
On 12 Nov 2008, at 21:53, Marc Santhoff wrote:
Getmem allocates memory, but does not perform any initialisation. Use
new() for record types containing fields that must be initialised
Am Mittwoch, den 12.11.2008, 22:30 +0100 schrieb Jonas Maebe:
> On 12 Nov 2008, at 21:53, Marc Santhoff wrote:
>
> > constructor TTableDescriptor.create;
> > begin
> > inherited create;
> > GetMem(fInfo, sizeof(TTableInfo));
>
> Getmem allocates memory, but does not perform any initialisation.
On 12 Nov 2008, at 21:53, Marc Santhoff wrote:
constructor TTableDescriptor.create;
begin
inherited create;
GetMem(fInfo, sizeof(TTableInfo));
Getmem allocates memory, but does not perform any initialisation. Use
new() for record types containing fields that must be initialised
(such as
Hi,
I'm trying to assing dynamic array variables to a record type on the
heap and handing that record over to the caller:
type
TCompoundInfo = record
Id: hid_t;
Name: string;
TotalSize: longword;
ElementNames: array of PChar;