ClassesClasses | | Operators

release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevice (Operator)

Name

release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevice — Close a compute_device.

Warning

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice must not be used in HDevelop!

Signature

release_compute_device( : : DeviceHandle : )

Herror T_release_compute_device(const Htuple DeviceHandle)

void ReleaseComputeDevice(const HTuple& DeviceHandle)

void HComputeDevice::ReleaseComputeDevice() const

static void HOperatorSet.ReleaseComputeDevice(HTuple deviceHandle)

void HComputeDevice.ReleaseComputeDevice()

Description

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice closes a compute devices for the current HALCON thread and frees all resources associated to DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle. release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice is solely for the purpose of freeing all device related resources before unloading the HALCON library, if the library was loaded using a mechanism like LoadLibrary or dlopen. In all other cases you must not use release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice!

Execution Information

Parameters

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle (input_control)  compute_device HComputeDevice, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Compute device handle.

Result

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevice returns the value 2 (H_MSG_TRUE) if DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle was closed successfully. Otherwise an exception will be raised.

See also

release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevices, deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDeviceDeactivateComputeDevice, deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesDeactivateAllComputeDevices

Module

Foundation


ClassesClasses | | Operators