Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: What is the best chess program made in Turbo Pascal ??

Author: Andrey Popov

Date: 07:19:44 11/05/04

Go up one level in this thread


>>In Turbo Pascal, if your program has crashed with run-time error,
>>then the line in the source code where the error occured is highlighted.
>>In Delphi I cannot learn where is the place of a run-time error.
>
>Well, if you set the respective compiler options (Menu Project -> Options ->
>Compiler -> Runtime Errors and Debugging), you get to the exact line just as
>well - it works for me at least...
>
>Best regards - Munjong.
I runned the following program. It crashed and Delphi closed the execution
window immediately. I even could not see the error message in that window.
No line was highlighted in the source window after that.
program a;
uses windows;
{$APPTYPE CONSOLE}
{$R+ D+ L+ Y+}
{Options above are the same as in Runtime Errors and Debugging menus}
var i:integer;
    ar : array [1..3] of real;
begin
  i:=1;    ar[i]:=1.0;
  inc(i);  ar[i]:=2.0;
  inc(i);  ar[i]:=3.0;
  inc(i);  ar[i]:=4.0;
  writeln(i);
end.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.