[fpc-pascal] dynamic arrays behaving funny

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Nov 12 22:30:28 CET 2008

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 all reference counted types).


More information about the fpc-pascal mailing list