* * *

Author Topic: An issue with an error message  (Read 768 times)

SaintMichael57

  • New member
  • *
  • Posts: 10
An issue with an error message
« on: May 27, 2017, 12:13:45 pm »
Dear FreePascal Community:
     When I implemented a program using Free Pascal, I got error
message run time error 201 as a result.  What does this mean, and where can I get more information on error messages for Free Pascal?
Thank you. :)


                                            Best regards,
                                            Carl Mesaros

BrunoK

  • New member
  • *
  • Posts: 39
Re: An issue with an error message
« Reply #1 on: May 27, 2017, 12:28:29 pm »
Google words :
  free pascal run time error 201
First item for me  :
  D Run-time errors - Free Pascal
  https://www.freepascal.org/docs-html/user/userap4.html

molly

  • Hero Member
  • *****
  • Posts: 1916
Re: An issue with an error message
« Reply #2 on: May 27, 2017, 08:14:54 pm »
..run time error 201 as a result.  What does this mean, and where can I get more information on error messages for Free Pascal?
Error 201 is an ordinary range-check error.

Compile with range checks turned on and -gl and FPC normally shows you a trace to the line producing that error. Or run your program using lazarus and the debugger (also range checks turned on)

Thaddy

  • Hero Member
  • *****
  • Posts: 4521
Re: An issue with an error message
« Reply #3 on: May 28, 2017, 07:05:19 am »
OP is posting duplicates here..
Note that range check errors are unique in that it takes programmer interaction. They only appear when forced by {$rangechecks on} or {$R+} otherwise they are ignored by the compiler. You won't see them at all. But they are indicative of a problem with initialization, so you must pay attention.
« Last Edit: May 28, 2017, 07:12:55 am by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus