I notice it's seeming easy to cause errors, nightmares, and problems in Delphi. The latest example:
All vars are declared as longint (and were DWord). The operators in the calculations all have been provided in input.
The first line takes down FPC with an RTE 217, so I don't get to the other lines (Delphi is fine with the first line).
But Delphi executes and does nothing with the last 4 lines, seemingly (the two writes do not appear in CONSOLE MODE).
Can anyone enlighten me?
Code:
mem_limit := in_limit * 1024 * 1024;
items_blocked := mem_limit div in_lrecl;
writeln('Items blocked: ', items_blocked);
memsize := items_blocked * in_lrecl;
writeln('Mem size: ', memsize);
All vars are declared as longint (and were DWord). The operators in the calculations all have been provided in input.
The first line takes down FPC with an RTE 217, so I don't get to the other lines (Delphi is fine with the first line).
But Delphi executes and does nothing with the last 4 lines, seemingly (the two writes do not appear in CONSOLE MODE).
Can anyone enlighten me?