I have a test in a method that reads class wide integer properties of front (= 35) & back (= 30)
When I call Dosomething I get stuck in a loop because the runcheck always evaluates false even though the values I am testing are 35 > 30 which should result in true. This is bad enough, but I am trying to monitor variable values in the debugger local variable window and it is showing the front and back variables at 35 & 30, but will not show me the values for the booleans when I step through the program in debugger. The local variable wibndow tells me that the value is not available due to optimization. I have visited the Project/options/compiler settings and turned optimization off and checked Complete Boolean Eval on without any change in the local variable window report.
Any suggestions or insights please!@
Code:
procedure runcheck (iscomplete : boolean);
begin
iscomplete := front > back;
end
Procedure DoSomething;
var
done : boolean
Begin
done := false;
Repeat
runcheck (done);
Until done;
End;
Any suggestions or insights please!@