[fpc-pascal] Compiler raise an EAbort exception

JoshyFun joshyfun at gmail.com
Sat Apr 4 17:14:19 CEST 2009


Hello ik,

Saturday, April 4, 2009, 3:07:58 PM, you wrote:

i>      SetLength(Prefix, High(aPrefix));
i>      SetLength(NumberLength, High(aNumberLength));

Discarding the compiler crash, this code seems buggy to me, unless you
know exactly the high/low of the arrays matches its length, I think it
should look like:

SetLength(Prefix, Length(aPrefix));
SetLength(NumberLength, Length(aNumberLength));

-- 
Best regards,
 JoshyFun




More information about the fpc-pascal mailing list