release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_deviceT_release_compute_device
説明
release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_deviceT_release_compute_device — 計算デバイスを閉じる。
警告
release_compute_deviceReleaseComputeDevice は、HDevelop上では使用しないでください!
書式
release_compute_device( compute_device DeviceHandle )void ReleaseComputeDevice( const HTuple& DeviceHandle )static void HOperatorSet.ReleaseComputeDevice( HTuple deviceHandle )def release_compute_device( device_handle: HHandle ) -> None
Herror T_release_compute_device( const Htuple DeviceHandle )
void HComputeDevice::ReleaseComputeDevice( ) const
void HComputeDevice.ReleaseComputeDevice( )
説明
release_compute_deviceReleaseComputeDevice は、現在の HALCON スレッドの計算デ
バイスを閉じ、DeviceHandledeviceHandledevice_handle に関連付けられているすべてのリ
ソースを解放します。release_compute_deviceReleaseComputeDevice は、HALCON ライ
ブラリが LoadLibrary または dlopen などのメカニズムを使用してロー
ドされている場合、HALCON ライブラリをアンロードする前にデバイスに
関連するすべてのリソースを解放することのみを目的にしています。他の
どのような場合も、release_compute_deviceReleaseComputeDevice を使用すべきでは
ありません。
実行情報
実行情報
パラメーター
DeviceHandledeviceHandledevice_handle (input_control) compute_device → (handle)HTuple (HHandle)HComputeDevice, HTuple (IntPtr)HHandleHtuple (handle)
計算デバイスのハンドル
結果
release_compute_deviceReleaseComputeDevice は、DeviceHandledeviceHandledevice_handle が正常に
閉じられると、2 (H_MSG_TRUE) 値を返します。さもなければ、例外処理が発生しま
す。
他のオペレーターとの組み合わせ
組み合わせ
関連項目
release_all_compute_devicesReleaseAllComputeDevices, deactivate_compute_deviceDeactivateComputeDevice, deactivate_all_compute_devicesDeactivateAllComputeDevices
モジュール
Foundation