Modules
Status Code

Values and definitions of status codes related to SDK use. More...

Modules

 SDK Internal-Defined Status Codes
 
 Status Codes for Transparent Transmission of Algorithm Library
 

Detailed Description

Values and definitions of status codes related to SDK use.

After an API is called, an integer type status code will be returned. Status codes are explained in hexadecimal system, representing 0x%x.
This chapter shows all status codes and corresponding meanings. For example, 0x00000000 represents a successful API calling.
The folllowing sample code shows how to use the returned error code to get the corresponding camera access result.

int nRet = MV_OK;
nRet = MV_CC_OpenDevice(handle);
if (MV_OK != nRet)
{
printf("Open Device fail! nRet [0x%x]\n", nRet);
return nRet;
}

If the camera has been connected to a third-party software but there is still error during device connection, you get the following returned error code 0x80000203.

Open Device fail! nRet [0x80000203]

By searching for 0x80000203 in this chapter, you can know that you have no access permission for device.