![]() | OnFinalRelease Method |
Called during destruction of a driver instance.
virtual HRESULT OnFinalRelease();
Co<MainClass>.cpp
Returns S_OK if successful, otherwise a failure HRESULT.
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.
![]() |
---|
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. |