using Lazarus 1.9.0 in Delphi-mode and FPC 3.1.1 on Win7 x64
When using TRegIniFile then the first Readinteger works ok.
reg:= TRegIniFile.Create('\Software\myName\myApp');
i:= reg.ReadInteger(SECT_SETTINGS, 'edRcvUdpPort', 0);
i:= reg.ReadInteger(SECT_SETTINGS, 'edRcvUdpPort', 0);
But the second identical Readinteger generates this
"Project * raised exception class 'External: ?'"
The same with other read methods. It seems I can use a method only once.
Any idea why and how to fix it?
I imported it from Delphi and don't want to modify the source.