Device

ReleaseDevice

Overview

This API requests that the SDK release the resources allocated for the specified device.

Calling this API will invalidate the provided deviceHandle. Do not attempt to reuse it after calling this API.

Definition

CrError ReleaseDevice(CrDeviceHandle deviceHandle);

Input parameters

Type

Explanation

CrDeviceHandle

deviceHandle

Output parameters

None

Return value

Type

Explanation

CrError

CrError_None If the deviceHandle is a valid handle.
CrError_Init if the SDK is uninitialized
CrError_Generic_InvalidHandle If the deviceHandle is an invalid handle
Other than errors above, see Status code & Error

Related API

Special note (details)

This API releases the resources associated with the specified device handle.

This API does not necessarily need to be called when closing an application. Release is what must be called when closing an application.