Copyright © 2013-2015 MultiMedia Soft

LastError property (RO)

Previous pageReturn to chapter overviewNext page

Type

enumDjcErrorCodes for Visual Basic

long for Visual C++

 

This property is Read-only

 

 

Remarks

Each call to one of the component's methods could generate an error: in case the called method should return an unexpected value, this property could give more details about the nature of the error. In case the called method should success, this property would assume the value ERR_DJC_NOERROR (0).

 

Here follows a list of the available error codes that could be returned by the component's methods calls:

 

Mnemonic value

Numeric value

Meaning

ERR_DJC_NOERROR

0

No error was generated by the latest method call

ERR_DJC_NOT_ENOUGH_MEMORY

-1

Not enough memory

ERR_DJC_VALUE_OUT_OF_RANGE

-2

Value out of range

ERR_DJC_INVALID_FILE

-3

Invalid file

ERR_DJC_CANNOT_CREATE_FILE

-4

Cannot create file

ERR_DJC_INVALID_MIDI_DEVICE

-5

Invalid MIDI device

ERR_DJC_INVALID_RANGE

-6

Invalid range

ERR_DJC_INVALID_KEYBOARD

-7

Invalid keyboard

ERR_DJC_ALREADY_INITIALIZED

-8

Already initialized

ERR_DJC_DEVICE_CLOSED

-9

Device is closed

ERR_DJC_INVALID_EVENT

-10

Invalid event

ERR_DJC_BUFFER_TOO_SMALL

-11

The provided buffer is too small

ERR_DJC_DEVICE_ALREADY_ATTACHED

-12

The MIDI device is already attached

ERR_DJC_NAME_ALREADY_AVAILABLE

-13

The provided name is already in use by another existing item

ERR_DJC_CMD_ALREADY_AVAILABLE

-14

The provided MIDI command is already in use by another existing item

ERR_DJC_INVALID_ITEM

-15

Invalid item

ERR_DJC_UNSUPPORTED_ITEM

-16

Unsupported item

ERR_DJC_MISSING_ITEM_NAME

-17

The new item doesn't have a valid name

ERR_DJC_INVALID_PROFILE_TYPE

-18

Invalid profile's item type

ERR_DJC_NO_DISPLAY

-19

The MIDI DJ console doesn't have a display

ERR_DJC_INVALID_DISPLAY_SEGMENT

-20

Invalid display's segment

ERR_DJC_INVALID_DISPLAY_CELL

-21

Invalid display's cell

ERR_DJC_CONSOLE_NOT_CONNECTED

-22

The DJ Console is not connected

ERR_DJC_INVALID_PROFILE

-23

Invalid DJ Console profile

ERR_DJC_GENERIC

-100

Generic or unknown error