Most of the LINGO DLL functions return an error code. Below is a list of all possible codes:

Value

Name

Descriptions

0

LSERR_NO_ERROR_LNG

No error.

1

LSERR_OUT_OF_MEMORY_LNG

Out of dynamic system memory.

2

LSERR_UNABLE_TO_OPEN_LOG_FILE_LNG

Unable to open the log file.

3

LSERR_INVALID_NULL_POINTER_LNG

A NULL pointer was passed to a routine that was expecting a non-NULL pointer.

4

LSERR_INVALID_INPUT_LNG

An input argument contained invalid input.

5

LSERR_INFO_NOT_AVAILABLE_LNG

A request was made for information that is not currently available.

6

LSERR_UNABLE_TO_COMPLETE_TASK_LNG

Unable to successfully complete the specified task.

7

LSERR_INVALID_LICENSE_KEY_LNG

The license key passed to LScreateEnvLicenceLng() was invalid.

8

LSERR_INVALID_VARIABLE_NAME_LNG

A variable name passed to LSgetCallbackVarPrimal() was invalid.

1000

LSERR_JNI_CALLBACK_NOT_FOUND_LNG

A valid callback function was not found in the calling Java application.