Hello,
I have an issue that I'm pretty sure is not unique to me, I just can't seem to find answers anywhere.
Well....Don't I feel silly.... As soon as I posted this I found a workaround that is very useful right here!http://forum.lazarus.freepascal.org/index.php/topic,36400.0.htmlModerators...feel free to delete!
The code below will throw an Error 106 when compiled and run as is.
I've determined that for some reason the combination of two strings read before the real (multiple readln) is causing an issue.
This only began after the April Windows 10 x64 updates.
I'm having the issue on both free pascal 3.0.4 and Lazarus Release 1.8.2 (with FPC 3.0.4) (Which is obvious)
I have no issue with Linux fpc 3.0.0
Since I really believe that this is a Windows 10 issue, is there any suggested work around?
program Windows10_Error_106;
var
fname, lastName: string;
amountPaid: real;
begin
writeln('Enter your first name');
readln(fname);
writeln('enter your last name');
readln(lastName);
writeln(fname, lastName);
writeln('Enter amount paid');
readln(amountPaid);
writeln(fname, lastName, amountPaid);
readln;
end.