home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / MAXONB32.DMS / in.adf / docs.lha / E-Error_Messages < prev    next >
Encoding:
Text File  |  1994-10-31  |  18.1 KB  |  814 lines

  1.  
  2.                 Error Messages
  3.  
  4.  
  5.  
  6.  
  7. AmigaDOS Error Codes
  8.  
  9.  
  10. This section details the numeric AmigaDOS
  11. errors and their meanings. You may also use the
  12. AmigaDOS FAULT command followed by an error
  13. number to obtain the meaning.
  14.  
  15. 103 insufficient free store
  16.  
  17. 105 task table full
  18.  
  19. 114 bad template
  20.  
  21. 115 bad number
  22.  
  23. 116 required argument missing
  24.  
  25. 117 keyword requires argument
  26.  
  27. 118 too many arguments
  28.  
  29. 120 argument line invalid or too long
  30.  
  31. 121 file is not an object module
  32.  
  33. 122 invalid resident library during load
  34.  
  35. 201 no default directory
  36.  
  37. 202 object in use
  38.  
  39. 203 object already exists
  40.  
  41. 204 directory not found
  42.  
  43. 205 object not found
  44.  
  45. 206 invalid window
  46.  
  47. 207 object too large
  48.  
  49. 208 invalid action
  50.  
  51. 209 packet request type unknown
  52.  
  53. 210 invalid stream component name
  54.  
  55. 211 invalid object lock
  56.  
  57. 212 object not of required type
  58.  
  59. 213 disk not validated
  60.  
  61. 214 disk write-protected
  62.  
  63. 215 rename across devices attempted
  64.  
  65. 216 directory not empty
  66.  
  67. 217 too many levels
  68.  
  69. 218 device not mounted
  70.  
  71. 219 seek error
  72.  
  73. 219 seek error
  74.  
  75. 220 comment too big
  76.  
  77. 221 disk full
  78.  
  79. 222 file is protected from deletion
  80.  
  81. 223 file is protected from writing
  82.  
  83. 224 file is protected from reading
  84.  
  85. 225 not a DOS disk
  86.  
  87. 226 no disk in drive
  88.  
  89. 232 no more entries in directory
  90.  
  91. 233 object is soft linked
  92.  
  93. 234 object is linked
  94.  
  95. 235 bad hunk
  96.  
  97. 236 not implemented
  98.  
  99. 240 record not locked
  100.  
  101. 241 lock collision
  102.  
  103. 242 lock timeout
  104.  
  105. 243 unlock failed
  106.  
  107. 303 Buffer overflow
  108.  
  109. 304 break received
  110.  
  111. 305 file not executable
  112.  
  113.  
  114. Runtime Errors
  115.  
  116. A run-time error is an error produced by a
  117. running program; they are distinct from errors
  118. produced by the compiler while compiling your
  119. program which are detailed later in this
  120. Appendix. There are two types of run-time
  121. error: fatal errors, produced when something
  122. goes seriously wrong, and ordinary errors.
  123. As a substantial part of the compiler is
  124. written in MaxonBASIC it is possible for the
  125. compiler to generate these errors, the most
  126. common of which is Out of memory.
  127.  
  128.  
  129. Fatal Run-time Errors
  130.  
  131. These are shown in a similar way to a Guru in a
  132. red box at the top of the screen, with these
  133. ominous words
  134.  
  135. MaxonBASIC fatal error: <message> <,#line>
  136. Don´t panic - press left mouse button
  137. The <#line> part of the message will contain
  138. the last physical line number, if the line
  139. number option was on. Pressing the left mouse
  140. button should terminate the program. These are
  141. known as fatal errors because ON ERROR cannot
  142. trap them - the problem is considered too
  143. serious to continue running the program. Fatal
  144. errors that can occur are as follows:
  145.  
  146. Cannot create HB.mainport
  147. Very unlikely, this means the program´s main
  148. message port cannot be allocated, normally
  149. because memory is extremely low.
  150.  
  151. Cannot open mathieeedoubbas.library
  152. This library is required for double-precision
  153. maths.
  154.  
  155. Cannot open mathieeedoubtrans.library
  156. This library is required for double-precision
  157. transcendental routines, including trig
  158. functions.
  159.  
  160. Memory List Corrupt
  161. Either there is a bug in the run-time system,
  162. or something has corrupted BASICs memory list.
  163. It is likely that the machine will crash
  164. shortly after you left click, if not sooner.
  165.  
  166. No hbasic2.library
  167. This occurs if a shared library-type program
  168. has been run and cannot find the library file.
  169. It must be in the LIBS: directory.
  170.  
  171. Stack overflow
  172. The machine stack has overflowed; see the
  173. MINSTACK option.
  174.  
  175. String space corrupt
  176. Either something has corrupted the string space
  177. (i.e. the heap) or the garbage collector has
  178. failed. If this occurs in a repeatable fashion
  179. please contact us.
  180.  
  181. Unexpected Exception
  182. The operating system has tried to put up a
  183. Software error - task held System Requester,
  184. but BASIC intercepts this. This can be caused
  185. by many things, but most common on a 68000 is
  186. an address error, caused by accessing odd-
  187. aligned memory (e.g. PEEKL(45)) and illegal
  188. exceptions, caused by stack overflow or memory
  189. corruption. If the line number is not a big
  190. enough clue as to the cause the debugger can be
  191. used to catch the exact cause of the exception.
  192.  
  193.  
  194. Non-fatal Run-time Errors
  195.  
  196. Non-fatal run-time errors are reported in a
  197. System Requester, with a message, module name,
  198. line number and channel number, together with
  199. an Abort program gadget. Some fields will not
  200. appear in messages, depending on the compiler
  201. options used.
  202. These errors are listed in numeric order for
  203. easy reference when messages are not included
  204. in the compiled program and for the ERR
  205. function. Following the numeric list there is
  206. an alphabetic list with explanations as to
  207. their meaning.
  208. 3   RETURN without GOSUB
  209. 4   Out of data
  210. 5   Illegal function call
  211. 6   Overflow
  212. 7   Out of memory
  213. 9   Subscript out of range
  214. 10  Redimensioned array
  215. 11  Division by zero
  216. 13  Type mismatch
  217. 16  String formula too complex
  218. 20  RESUME without error
  219. 23  Line buffer overflow
  220. 31  Wrong number of dimensions
  221. 49  Volume not found
  222. 50  FIELD overflow
  223. 51  Internal error
  224. 52  Bad channel number
  225. 53  File not found
  226. 54  Bad file mode
  227. 55  File already open
  228. 57  Device I/O error
  229. 61  Disk full
  230. 62  Input past end
  231. 63  Bad record number
  232. 64  Bad file name
  233. 67  Too many files
  234. 68  Device function unavailable
  235. 70  Disk write protected
  236. 75  Path/file access error
  237. 76  Path not found
  238. 77  BREAK pressed
  239. 80  Array not dimensioned
  240. 81  Sub-program not present
  241.  
  242.  
  243. Run-time Errors Alphabetically
  244.  
  245.  
  246. Array not dimensioned
  247. You have used an array that has not been
  248. dimensioned. This only occurs when the Auto-DIM
  249. arrays option is disabled. In generally means
  250. that you have misspelt the array name here or
  251. have forgotten to DIMension it.
  252.  
  253. Bad channel number
  254. Valid channel numbers are from 1 to 255
  255. inclusive, plus 256 for the default printer
  256. channel that is used by LPRINT. In addition
  257. windows use channel numbers 257 upwards.
  258.  
  259. Bad file mode
  260. You are trying open a channel with an invalid
  261. mode string, or trying an input/output
  262. operation on a channel that cannot support it,
  263. e.g. PRINTing to a file opened for INPUT.
  264.  
  265. Bad file name
  266. The filename is invalid, either because it is
  267. too long or because it contains invalid
  268. characters.
  269.  
  270. Bad record number
  271. A record number of 0 is not valid in a PUT or
  272. GET statement.
  273.  
  274. BREAK pressed
  275. Ctrl-C or A-.was pressed. This error cannot be
  276. trapped by ON ERROR but can with ON BREAK - if
  277. you wish Ctrl-C to be ignored then turn the
  278. break checks option off.
  279.  
  280. Device I/O error
  281. A physical error has occurred during an
  282. input/output operation or the operation cannot
  283. be performed because of lack of memory.
  284.  
  285. Device unavailable
  286. You are trying an operation on a device that
  287. cannot support it, such as drawing a circle on
  288. a disk file.
  289.  
  290. Disk full
  291.  
  292. Disk write protected
  293.  
  294. Division by zero
  295.  
  296. FIELD overflow
  297. A FIELD statement has attempted to use more
  298. space than specified in the record size when
  299. OPENed, or PRINT# to a random file has filled
  300. the current record.
  301.  
  302. File already open
  303. Another program has probably opened the file.
  304.  
  305. File not found
  306.  
  307. Illegal function call
  308. This error can be caused by a multitude of
  309. things and means a parameter was not in the
  310. range required by a function. The module name
  311. and line number can be used to track down the
  312. error.
  313.  
  314. Input past end
  315. You have tried to read past the end of a file.
  316.  
  317. Internal error
  318. This should never happen. It almost certainly
  319. means that your program has destroyed part of
  320. the heap or the program itself.
  321.  
  322. Line buffer overflow
  323. A text line in a file is too long for the
  324. current line buffer. You can increase the size
  325. of this buffer by modifying the long word at
  326. SYSTAB+68.
  327.  
  328. Out of data
  329. A READ has been attempted when no more DATA is
  330. available.
  331.  
  332. Out of memory
  333. If you are using the Old Heap option this means
  334. the heap is full, which is the area of memory
  335. used for storing strings and arrays. You should
  336. use either the new heap or increase the size of
  337. the old heap. See Chapter 4: The Compiler.
  338.  
  339. Overflow
  340. A result of a numeric calculation is too large
  341. to fit into the required type. This can occur
  342. when you don´t expect it, for example the line
  343.  
  344. test!=32767+1
  345. will produce it, as two integers are added
  346. together using integer arithmetic. The correct
  347. result can be obtained by forcing single-
  348. precision arithmetic:
  349.  
  350. test!=32767!+1
  351.  
  352. Path not found
  353. An invalid path was specified in a DOS command.
  354.  
  355. Path/file access error
  356. You are not permitted to do that operation with
  357. that file, such as trying to KILL a read-only
  358. file.
  359.  
  360. Redimensioned array
  361. An existing array must be ERASEd before DIMmed
  362. for a second time. Alternatively use REDIM.
  363.  
  364. RESUME without error
  365. A RESUME command will only work from within an
  366. ON ERROR handler.
  367.  
  368. RETURN without GOSUB
  369. A RETURN statement was executed but not from a
  370. section of the program which had been called
  371. with GOSUB. This error will only occur with the
  372. stack checks option turned on (see Chapter 4:
  373. The Compiler).
  374.  
  375. String formula too complex
  376. String operations use temporary descriptors for
  377. intermediate results, and it is remotely
  378. possible to run out and produce this error. You
  379. can use the String Descriptors (STRINGS)
  380. compiler option to increase this.
  381.  
  382. Sub-program not present
  383. The means that you have called an un-defined
  384. sub-program or function. Normally this is
  385. checked by the compiler so this error will only
  386. occur if you have used the Allow undefined sub-
  387. programs option (UNDEFSUBS) has been used.
  388.  
  389. Subscript out of range
  390. An array subscript used is larger than that
  391. specified in the dimensioned statement,
  392. negative, or 0 if OPTION BASE 1 is used.
  393.  
  394. Too many files
  395. A maximum of 255 channels may be opened at once
  396. from BASIC.
  397.  
  398. Type mismatch
  399. A READ was attempted into a numeric variable
  400. but the data was found to be a string.
  401.  
  402. Volume not found
  403.  
  404. Wrong number of subscripts
  405. An array has been referenced with a different
  406. number of dimensions to the number last DIMmed.
  407. Unlike other compilers this is a run-time error
  408. as dynamic MaxonBASIC arrays can be REDIMmed
  409. with different numbers of dimensions.
  410.  
  411.  
  412. Compilation Errors
  413.  
  414.  
  415. When the integrated compiler detects an error
  416. or something that may be an error (a warning)
  417. it generates a message.
  418. Where possible, the editor will load and
  419. activate the appropriate source file, ensuring
  420. that the line containing the error is on the
  421. screen.
  422. If you click on Stop (or press S) then you will
  423. be returned to the editor and you can then fix
  424. the error.
  425. Clicking on OK (or pressing O) will make the
  426. compiler continue and it may find other errors.
  427. Sometimes one error may cause the compiler to
  428. generate other, so-called knock-on errors. If
  429. you find this confusing you should always
  430. select Stop and fix your bugs one at a time.
  431. If you click on Continue to End (C), the
  432. compiler will attempt to compile the entire
  433. program without displaying any further error
  434. messages. If you have a large number of errors
  435. then you will probably get the message Too Many
  436. Errors.
  437. When you return to be editor you can use Ctrl-E
  438. (or the Next sub-item from Errors sub-menu on
  439. the Program menu) to move to the next error
  440. with the error message displayed in the window
  441. title bar. To go to a previous error use Shift-
  442. Ctrl-E (or the Next sub-item from Errors sub-
  443. menu on the Program menu). The editor takes
  444. account of any insertions or deletions
  445. automatically so that unless one error (like a
  446. mistake in a definition) has caused multiple
  447. errors you should only need to compile once.
  448. Normally the error message should be fairly
  449. obvious. The following list gives some extra
  450. hints for some of the error messages.
  451. Occasionally the compiler will spot errors
  452. somewhat later than you might expect. This is
  453. usually because the text up to the point it has
  454. read is allowed in certain contexts. If you
  455. have missed something out at the end of a line,
  456. then the error may be detected at the beginning
  457. of the next line. Note that, except in the case
  458. of missing sub-programs, line numbers or
  459. labels, the error in your program can not be
  460. after the point where the error was detected.
  461. On occasions the compiler will generate more
  462. than one error message as a result of a single
  463. error in your program; do not be put off by
  464. this. If you get confused, just re-compile.
  465. If you have a very badly formed source file,
  466. the compiler may slow down considerably. It is
  467. probably a good idea to click on the Stop
  468. button.
  469. It is possible that some error messages may
  470. have been added to the compiler; only if an
  471. error is generated without an error message is
  472. this a possible bug in the compiler. If you do
  473. get an error number without a message, please
  474. tell us.
  475.  
  476. When using the compiler directly rather than
  477. from the editor, the error messages are
  478. prefaced by the error number and followed by
  479. the line and file in which the error was
  480. detected. In the case of warnings the compiler
  481. will continue automatically. After an error it
  482. will ask you if you wish to continue. If you
  483. type n or N (for no) compilation will stop; if
  484. you hit any other key compilation will
  485. continue. To avoid this prompting use the BATCH
  486. option.
  487.  
  488.  
  489. Compiler Error Messages
  490.  
  491. In the following list many of the messages give
  492. an identifier, reserved word or symbol, this is
  493. displayed instead of the % in the message.
  494.  
  495. 2   ON... should be followed by GOTO/GOSUB
  496.  
  497. 3   Undefined identifier %
  498.  
  499. 4   Unterminated string in data
  500.  
  501. 5   Line  number/label missing in GOTO/GOSUB  %
  502.     found instead
  503.  
  504. 6   END DEF assumed
  505.  
  506. 7   END SUB assumed
  507.  
  508. 8   END DEF/FUNCTION where END SUB expected
  509.  
  510. 9   END SUB /FUNCTION where END DEF expected
  511.  
  512. 10  Letter expected after DEFINT etc
  513.  
  514. 11  Letter expected after - in DEFINT etc
  515.  
  516. 13  Extra END / NEXT / LOOP
  517.  
  518. 14  Numeric expression expected (not string)
  519.  
  520. 15  ) expected instead of %
  521.  
  522. 16  Unterminated string
  523.  
  524. 17  Unexpected character in source
  525.  
  526. 18  FN must be followed by a name.
  527.  
  528. 19  Bad line number (% is not positive)
  529.  
  530. 20  Bad line number (% is too large)
  531.  
  532. 21  Bad line number (% has fraction/ exponent)
  533.  
  534. 22  Line number % not found
  535.  
  536. 23  Line number % not found
  537.  
  538. 24  Parameter (%) may not be used as  FOR  loop
  539.     identifier
  540.  
  541. 25  Name (not %) expected in parameter list
  542.  
  543. 26  Options file % not found
  544.  
  545. 27  CDECL  may  only be used in  DECLAREd  sub-
  546.     programs
  547.  
  548. 28  )  expected  at  end of parameter  list.  %
  549.     found instead
  550.  
  551. 29  Name expected instead of %
  552.  
  553. 30  Statement  only  allowed in sub-program  or
  554.     function
  555.  
  556. 32  Label % defined twice
  557.  
  558. 33  COMMON must be followed by SHARED
  559.  
  560. 34  Line number/label expected instead of %
  561.  
  562. 35  WIDTH statement badly formed
  563.  
  564. 37  Constant  %  may not be used  in  parameter
  565.     definition.
  566.  
  567. 38  Too many lines in program
  568.  
  569. 39  Internal Error (bad source on pass 2)
  570.  
  571. 40  Expression mismatch
  572.  
  573. 41  END FUNCTION expected before here
  574.  
  575. 42  Expression    too   complex    (too    many
  576.     operators)
  577.  
  578. 43  Expression mismatch
  579.  
  580. 44  Expression too complex
  581.  
  582. 45  Expression syntax
  583.  
  584. 46  Expression syntax
  585.  
  586. 47  FUNCTION or SUB expected after DECLARE
  587.  
  588. 48  FUNCTION or SUB declared but not present
  589.  
  590. 49  SUB name % used in expression
  591.  
  592. 50  Expression  mismatch:  %  is  not  a  unary
  593.     operator
  594.  
  595. 51  Expression mismatch: No unary string minus
  596.  
  597. 52  Expression mismatch
  598.  
  599. 53  Illegal type combination
  600.  
  601. 54  Illegal type combination (not string)
  602.  
  603. 55  Parameter % appears twice
  604.  
  605. 56  Illegal type combination (not string)
  606.  
  607. 57  %   is   not  a  variable  or  the  current
  608.     function
  609.  
  610. 58  Variable is wrong type
  611.  
  612. 59  Open bracket expected instead of %
  613.  
  614. 60  Comma expected instead of %
  615.  
  616. 61  Semi-colon expected instead of %
  617.  
  618. 62  Extra characters at end of statement  %  is
  619.     first
  620.  
  621. 63  END DEF assumed at the end of program
  622.  
  623. 64  END SUB assumed at the end of program
  624.  
  625. 65  END DEF / SUB where END FUNCTION expected
  626.  
  627. 67  Bad option specified
  628.  
  629. 68  ( expected in CALL statement instead of %
  630.  
  631. 69  Subroutine % not found
  632.  
  633. 70  Can   only  disable  reserved  words   from
  634.     within a program or pre-tok file
  635.  
  636. 71  DECLARE..LIBRARY  must  be  after   LIBRARY
  637.     statement
  638.  
  639. 72  = expected instead of %
  640.  
  641. 73  LIBRARY routine % mis-used
  642.  
  643. 74  Unknown meta-command %
  644.  
  645. 75  Structure table full
  646.  
  647. 76  LIBRARY expected instead of %
  648.  
  649. 77  Tokens file too old
  650.  
  651. 78  FOR  variables  must  be  simple  variables
  652.     (not % which is an array)
  653.  
  654. 79  FOR variable % can´t be a string
  655.  
  656. 80  TO not % expected in FOR statement
  657.  
  658. 81  Tokens file too new
  659.  
  660. 82  Tokens file corrupt
  661.  
  662. 83  BASE not % expected after OPTION
  663.  
  664. 84  OPTION  BASE must be followed by the number
  665.     0 or 1 not %
  666.  
  667. 85  Tokens file % not found
  668.  
  669. 86  Cannot delete % as a reserved word
  670.  
  671. 88  % cannot start a statement
  672.  
  673. 89  Extra ELSE
  674.  
  675. 90  ELSEIF must be followed by THEN not %
  676.  
  677. 91  % not allowed after END
  678.  
  679. 92  Mismatched NEXT should be %
  680.  
  681. 93  END IF expected before here
  682.  
  683. 94  END REPEAT expected before here
  684.  
  685. 95  NEXT expected before here
  686.  
  687. 96  END SELECT expected before here
  688.  
  689. 97  WEND expected before here
  690.  
  691. 98  LOOP/WEND expected before here
  692.  
  693. 99  Name  required after SUB or  DEF.  %  found
  694.     instead
  695.  
  696. 100 Identifier % redefined
  697.  
  698. 101 Option value too large
  699.  
  700. 102 Name expected after LET (not %)
  701.  
  702. 103 GOTO,  THEN  or end of line expected  after
  703.     IF expression not %
  704.  
  705. 105 Unexpected  END  SUB  or  END  DEF  or  END
  706.     FUNCTION
  707.  
  708. 106 CALL missing at start of statement
  709.  
  710. 107 Unterminated control constructs
  711.  
  712. 108 Function   or   sub-program  redefined   in
  713.     LIBRARY %
  714.  
  715. 109 Unknown REPEAT loop in EXIT
  716.  
  717. 111 Semi-colon or comma expected
  718.  
  719. 112 REDIM  PRESERVE of arrays of more than  one
  720.     dimension not allowed
  721.  
  722. 113 AS  or  ,  expected instead of  %  in  OPEN
  723.     statement
  724.  
  725. 114 CONSTants must be integers not %
  726.  
  727. 115 CONST % can not be assigned to
  728.  
  729. 116 -   expected  instead  of  %  in   graphics
  730.     statement.
  731.  
  732. 118 % is not a label
  733.  
  734. 119 (  expected instead of % in graphics GET or
  735.     PUT
  736.  
  737. 120 Array  expected  but  ordinary  variable  %
  738.     found
  739.  
  740. 121 Argument  to  VARPTRS must be a  subroutine
  741.     name not %
  742.  
  743. 122 Too many LIBRARY statements
  744.  
  745. 123 INCLUDE file % not found
  746.  
  747. 124 LIBRARY % not opened
  748.  
  749. 125 Value parameter must not be array
  750.  
  751. 127 Library  /ALIAS must be string literal  not
  752.     %
  753.  
  754. 128 Cannot open library %
  755.  
  756. 129 Library % badly formed
  757.  
  758. 130 Too many parameters in statement
  759.  
  760. 131 Sub-program % not found
  761.  
  762. 132 GOTO expected after ON ERROR not %
  763.  
  764. 134 SELECT  variable  must  only  be  a  simple
  765.     variable not %
  766.  
  767. 135 LOOP/WEND expected before here
  768.  
  769. 137 ON/OFF expected not %
  770.  
  771. 150 Branch too far
  772.  
  773. 151 Label table full
  774.  
  775. 153 Invalid library
  776.  
  777. 154 Cannot create output file %
  778.  
  779. 155 Disk Full
  780.  
  781. 156 Not enough memory for program´s code.
  782.  
  783. 157 Internal error EOF
  784.  
  785. 158 Internal error BADRT
  786.  
  787. 159 Internal error BADMOD
  788.  
  789. 162 Overflow
  790.  
  791. 163 Internal bad type
  792.  
  793. 164 Internal bad pseudocode size
  794.  
  795. 165 Internal unbalanced stack
  796.  
  797. 166 Internal label not found
  798.  
  799. 167 Internal bad opcode
  800.  
  801. 168 Internal double definition
  802.  
  803. 169 Internal phasing error
  804.  
  805. 170 Internal stack underflow
  806.  
  807. 171 Internal precheck error
  808.  
  809. 172 Internal missing VOM
  810.  
  811. 173 Internal phasing error
  812.  
  813.  
  814.