Recent

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

SaintMichael57

  • New Member
  • *
  • Posts: 18
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

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
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: 2330
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: 14157
  • Probably until I exterminate Putin.
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 »
Specialize a type, not a var.

 

TinyPortal © 2005-2018