Guides/DLLs/Error Messages

From J Wiki
Jump to navigation Jump to search
Calling DLLs | Error Messages | Memory Management | Calling the J DLL

cd Domain Error and GetLastError Information

cder'' returns information about a cd domain error:

result description
0 0 no error
1 0 file not found
2 0 procedure not found
3 0 too many DLLs loaded (max 20)
4 0 too many or too few parameters (there must be one atom in y for each declaration, not including the declaration of the returned value)
5 x declaration x invalid. x=0 complains about the declaration of the returned value, which comes right after the function name; x=1 complains about the first argument, etc.
6 x parameter x type doesn't match declaration. x=0 complains about the first argument, x=1 about the second argument, etc.
7 0 system limit - linux64 max 8 float/double scalars

cderx'' returns GetLastError and text from the last cd.