HSP : Hot Soup Processor ver3.6 / onion software 1997-2021(c)

title

HSP3 error message list

An error occurred during HSP execution due to a script writing error or a specified error. When it is found, the error code and error line number are displayed.

This document is intended to be used to investigate the cause of an error when it occurs. Also, please refer to the following sites.

HSP3 FAQ: I don't understand the meaning of the error message and how to deal with it (HSPWiKi)

http://quasiquote.org/hspwiki/HSP3 FAQ: I don't understand the meaning of the error message and what to do about it

The error number and its contents are as follows.

1 "A system error has occurred"

This error is not normally displayed. If the file is corrupted or Displayed when something unexpected happens.

2 "The grammar is wrong"

When the description method of functions and instructions is wrong, or Displayed when the variable name or label name is incorrect.

3 "The parameter value is abnormal"

Displayed when the value of the parameter is out of tolerance.

4 "An error occurred in the calculation formula"

Trying to write a calculation formula incorrectly, or try to use a symbol or operation that cannot be used It will be displayed when you do.

5 "Parameters cannot be omitted"

Displayed when the part where the parameter cannot be omitted is omitted.

6 "Parameter type is different"

The type specified in the parameter (string type, numeric type, etc.) is not specified It is displayed at times. If a variable is specified, the variable type is incorrect.

7 "Invalid array elements"

The value specified as an array element is the number set by the dim, sdim instruction, etc. It is displayed when it is exceeded.

8 "No valid label specified"

If the parameter to be specified as a label is incorrect, or It is displayed when there is nothing after the "*" that indicates the label.

9 "Subroutines and loops are nested too deeply"

It is displayed when the gosub instruction and repeat instruction are executed too many times.

10 "Return outside the subroutine is invalid"

It is displayed when the return instruction is executed even though it is not called by the gosub instruction.

11 "loop outside repeat is invalid"

It is displayed when the loop instruction is executed even though there is no repeat instruction.

12 "File not found or invalid name"

Did the specified file not be found when performing a file operation? Or it is displayed when the file is inaccessible.

13 "No image file"

Displayed when the image file to be loaded by the picload command cannot be found.

14 "Error calling external file"

When something goes wrong when calling an external file with the exec instruction It shows.

15 "The description in parentheses is different in the calculation formula"

The format of the parentheses "(,)" used in the calculation formula is incorrect, or the correspondence is incorrect. It is displayed when something is wrong.

16 "Too many parameters"

Displayed when the number of parameters specified in the instruction is too large.

17 "The number of characters that can be handled by a string expression has been exceeded"

It is displayed when the allowable amount for handling character strings is exceeded.

18 "Specifying a variable name that cannot be assigned"

Displayed when trying to assign to a system variable or reserved keyword.

19 "Divided by 0"

Displayed when trying to divide by 0.

20 "A buffer overflow has occurred"

When the size secured by the sdim instruction or the dim instruction is exceeded due to a character string variable, Displayed when trying to access beyond the variable buffer.

21 "You have selected an unsupported feature"

When trying to execute a semi-transparent copy in palette mode with the gcopy command, etc. Displayed when settings that are not supported as a function are made.

22 "The parentheses in the formula are too deep"

If the formula is too complicated and stackover occurs during evaluation It is displayed when the calculation is not performed correctly for some reason. Normally, it is not displayed. If you see this, Indicates that the system has encountered a fatal error.

23 "Variable name not specified"

If there is an incorrect description in the place where the variable name should be specified as a parameter It shows.

24 "A non-integer is specified"

When another type is found where only integers should be specified for the parameter It shows.

25 "The element format of the array is incorrect"

If the array element is written incorrectly, or if the array element is written It is displayed when it is written in a bad place.

26 "Memory could not be allocated"

Displayed when the physical memory of the system could not be secured. If this is displayed, it is a fatal error.

27 "Type initialization failed"

It is displayed when the initialization of the standard type and the extended type by the plug-in fails. If you see this, it means that your system has a fatal error. is showing.

28 "No arguments set for function"

Displayed when function parameters are not written correctly.

29 "Stack area overflow"

The stack was corrupted during a subroutine call or expression evaluation process Will be displayed if. Normally, it is not displayed. If you see this, it means that your system has encountered a fatal error. is showing.

30 "Invalid name specified for parameter"

Displayed when an invalid name is used as a parameter. It is also displayed when an alias or local variable that does not exist is referenced. You may.

31 "Assigned to an array variable with a different type"

When you try to assign a value of a type different from the initialized type to the array It shows.

32 "Invalid function parameter description"

When the parameter format of the function is incorrect or when the parentheses are missing It shows.

33 "Too many objects"

The object placed in the window has exceeded the set limit Will be displayed if.

34 "Type that cannot be used as an array / function"

If you specify an array with a type that does not support arrays, or Displayed when trying to use a non-function keyword as a function.

35 "No module variable specified"

Wrong content where module variables should be specified for parameters Displayed if written.

36 "Invalid module variable specification"

The module variable specified in the parameter is the wrong module Displayed if initialized. Normally, it is not displayed. If you see this, Indicates that the system has encountered a fatal error.

37 "Failed to convert variable type"

Unable to convert variable or value type or not supported Will be displayed if.

38 "Failed to call external DLL"

Displayed when the address of the function call destination of the external DLL fails to be obtained.

39 "Failed to call external object"

Displayed when an error occurs while calling a COM object.

40 "The return value of the function has not been set."

In the script defined as a user function, with the return instruction Displayed when the return value has not been set.

41 "The function is described as an instruction."

Displayed when the keyword defined as a function is described in the instruction format. Wrongly written instruction name or wrong functioned name from HSP2 You may be using it.

42 "Instruction not available in callback"

Displayed when an instruction that cannot be used while executing a callback routine such as interrupt or termination processing is described. See the programming manual for more information on callback routines.

ONION software