Click or drag to resize

OnFinalRelease Method

Called during destruction of a driver instance.

virtual HRESULT OnFinalRelease();
File

Co<MainClass>.cpp

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

The OnFinalRelease method executes only once on the main driver class over the lifetime of the driver, irrespective of the number of times a client application calls IIviDriver::Initialize and IIviDriver::Close.

The OnFinalRelease is generally used to cleanup resources allocated in OnFinalConstruct.

Note Note

By the time this function executes, the instrument I/O infrastructure has already been torn down. Thus, none of the instrument I/O functions can be used within this function.

See Also

Download a complete CHM version of this documentation here.