API Buffer Error Codes

API Buffer error codes are defined in the ApiBufferErrorCode class. Functions in the ApiBuffer class may return these errors.

Error

Code (Decimal)

Code (Hex)

Description

Resolution

OverMaxLevel

73728

0x12000

Maximum nesting level exceeded.

Implement flow control logic for the API buffer using less nesting levels (currently, up to 100 nesting levels are supported).

InvalidLevel

73729

0x12001

Invalid nesting level. Verify that flow control operations are added to the buffer in the correct order.

Verify that flow control operations are added to the buffer in the correct order.

InvalidBuffControl

73730

0x12002

Invalid control for API buffer. API buffer function cannot be used.

Restart the engine, or restart the PC. Verify that the correct version of the IMDll.dll is used.

InvalidWatchTriggerRoutineChannel

73731

0x12003

Watch trigger routine channel is out of range.

Verify that the watch trigger routine channel is within range.

WatchTriggerRoutineChannelSameAsExecChannel

73732

0x12004

Watch trigger routine channel cannot be the same as the execution channel.

Verify that the watch trigger routine channel is different from the channel the watch is defined for.

RewindFailedFirstCommandOverwritten

73733

0x12005

Failed to rewind. The first command in the buffer was overwritten.

This error is returned if the rewind operation fails because one or more commands in the buffer were overwritten by other commands added to the buffer. To prevent this error, do not add more commands to the buffer after executing the API buffer.

AlreadyRecordingForSpecifiedChannel

73734

0x12006

Already recording API functions for specified channel.

Verify that API functions are not being recorded already for the specified channel.

NotRecording

73735

0x12007

Not recording API functions.

Verify that API functions are being recorded.

RequestModeChangeTimeout

73736

0x12008

Mode change request timed out.

Verify that the API Buffer channel is in a valid state.

ApiBufferNotOpened

73737

0x12009

API buffer is not opened.

Open the API buffer channel by calling the CreateApiBuffer function.

GateNodeHasNoChild

73738

0x1200A

Gate node of multi-condition tree has no child. Gate node cannot be a leaf node.

Make sure to properly connect all the gate note with at least one leaf node as a child. See wmx3Api::ApiBufferMultiCondition::AddGateNode and wmx3Api::ApiBufferMultiCondition::ConnectParentChild.

NotGateNodeHasChildren

73739

0x1200B

Logical not gate node of multi-condition tree has children. Logical not gate node can have only one child.

Make sure not to add or connect multiple children to a logical not gate node.

LeafNodeHasChild

73740

0x1200C

Leaf node of multi-condition tree has child. Leaf node cannot have a child.

Add and connect leaf nodes only using provided methods. See wmx3Api::ApiBufferMultiCondition::AddLeafNode and wmx3Api::ApiBufferMultiCondition::ConnectParentChild.

InvalidMultiCondition

73741

0x1200D

Invalid multi-condition tree; Either the root node is not defined, or there are multiple root nodes, or there is a cycle.

Add and connect nodes only using provided methods. See wmx3Api::ApiBufferMultiCondition::AddGateNode, wmx3Api::ApiBufferMultiCondition::AddLeafNode, and wmx3Api::ApiBufferMultiCondition::ConnectParentChild.