Recent

Author Topic: [Solved] What means Runtime error 216?  (Read 21408 times)

Hartmut

  • Hero Member
  • *****
  • Posts: 749
[Solved] What means Runtime error 216?
« on: June 01, 2014, 04:24:59 pm »
Sometimes I get only a message like:
Code: [Select]
Runtime error 216 at $00404E9A
  $00404E9A
  $00408221
I'm looking for a list of all the runtime-error-messages. I didn't find anything in the documentation. SysErrorMessage() has nothing with 216. Has anybody a link for me to all the runtime-error-messages? Thanks in advance.
« Last Edit: June 01, 2014, 04:55:08 pm by Hartmut »

Rails

  • Guest
Re: What means Runtime error 216?
« Reply #1 on: June 01, 2014, 04:34:29 pm »
From the FPC User's Guide,

216 General Protection fault
 The application tried to access invalid memory space. This can be caused by several problems:

 Dereferencing a nil pointer.

Trying to access memory which is out of bounds (for example, calling move with an invalid length).

There should be a copy on your machine. If not, a quick Google will find you a download location.


Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: What means Runtime error 216?
« Reply #2 on: June 01, 2014, 04:46:55 pm »
I'm looking for a list of all the runtime-error-messages. I didn't find anything in the documentation. SysErrorMessage() has nothing with 216. Has anybody a link for me to all the runtime-error-messages? Thanks in advance.

The bit of the FPC Users Guide you need is online here:
http://www.freepascal.org/docs-html/user/userap4.html#x189-196000D

It's also distributed with Lazarus 1.2.2.  There's a chm in lazarus\docs\chm called user.chm.  That's the one you want.
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Hartmut

  • Hero Member
  • *****
  • Posts: 749
Re: [Solved] What means Runtime error 216?
« Reply #3 on: June 01, 2014, 04:55:43 pm »
Thanks a lot :D

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: [Solved] What means Runtime error 216?
« Reply #4 on: June 01, 2014, 05:02:25 pm »
No probs...

Small warning for future readers.  I've noticed that the online FPC help links aren't persistent over time.  So basically the link I gave is only likely to be valid until the next refresh...
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

 

TinyPortal © 2005-2018