[fpc-pascal] TFPDataHashTable

Claudio Lo Gaffo clogaffo at gmail.com
Fri Jun 10 22:13:27 CEST 2011


El 10/06/2011 05:06 p.m., Joseph Montanez escribió:
> I am tring to understand how to use TFPDataHashTable and upon using it
> I just manage to crash the application.
>
> program hashdemo;
>
> uses contnrs;
>
> var
>    HTable: TFPDataHashTable;
>    Test: String;
>    node: THTCustomNode;
> begin
>    Test := 'terr';
>    HTable.create;
>    HTable.add('test', @Test); {<-- Crashes here because its not initialised? }
>    writeln('Hello!');
>    node := HTable.find('test');
>    writeln(node.Key);
> end.
>
>
>
>
try Htable := TFPDataHashTable.Create;

Claudio



More information about the fpc-pascal mailing list