Don Tyszko
09-03-2009, 06:14 PM
With SNAP 2.2.12, what causes an error code 18? Can we get an updated list of the error codes? Thank You.
admin
09-04-2009, 09:27 AM
That particular error code indicates that we were unable to allocate the necessary memory. This usually occurs when you are doing string manipulation in your script since we have a limited number of dynamic buffers for these operations.
We already have made a note to make sure we update the SNAP Reference Manual for 2.2 with any changes to the error codes.
kbanks
09-04-2009, 09:57 AM
There were not a lot added. Here's the enum list.
0-15 were in the previous list, and are mentioned in the 2.1 SNAP Reference Manual.
16-18 have to do with the dynamic string buffers, and their associated reference counting.
19 happens when you try to do something like modify a (immuatble) tuple.
enum ErrorMessages {
NO_ERROR = 0,
OP_NOT_DEFINED = 1,
UNSUPPORTED_OPCODE = 2,
UNRESOLVED_DEPENDENCY = 3,
INCOMPATIBLE_TYPES = 4,
TARGET_NOT_CALLABLE = 5,
UNBOUND_LOCAL = 6,
BAD_GLOBAL_INDEX = 7,
EXCEEDED_MAX_BLOCK_STACK = 8,
EXCEEDED_MAX_FRAME_STACK = 9,
EXCEEDED_MAX_OBJ_STACK = 10,
INVALID_FUNC_ARGS = 11,
UNSUBSCRIPTABLE_OBJECT = 12,
INVALID_SUBSCRIPT = 13,
EXCEEDED_MAX_LOCAL_STACK = 14,
BAD_CONST_INDEX = 15,
ALLOC_REF_UNDERFLOW = 16,
ALLOC_REF_OVERFLOW = 17,
ALLOC_FAIL = 18,
UNSUPPORTED_TYPE = 19
};
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.