[fpc-pascal] Question on TFPGMap

ppadilcdx at gmail.com ppadilcdx at gmail.com
Mon Jan 2 00:57:32 CET 2023


I have a simple example that gives an access violation on the latest 
macos (fpc mode, i.e. no mode switch). What am I missing? Thanks in advance:

program ex;

uses fgl;

var d: specialize TFPGMap<String,Integer>;

begin
    decode.create;
    decode.add('X', 1);

end.


An unhandled exception occurred at $00000001023917DE:
EAccessViolation: Access violation
   $00000001023917DE


Regards

Pete



More information about the fpc-pascal mailing list