Skip to content

Runtime Error Codes


Runtime error codes and messages used by the runtime library.

Description

Freebasic returns the following runtime error codes:

0No error
1Illegal function call
2File not found signal
3File I/O error
4Out of memory
5Illegal resume
6Out of bounds array access
7Null Pointer Access
8No privileges
9interrupted signal
10illegal instruction signal
11floating point error signal
12segmentation violation signal
13Termination request signal
14abnormal termination signal
15quit request signal
16return without gosub
17end of file

No user error code range is defined. If Error is used to set an error code it is wise to use high values to avoid collisions with the list of built-in error codes. (This built-in list may be expanded later.)

See also

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft