This method releases system resources used by the neoVI device.
void _stdcall icsneoFreeObject(void * hObject);
Public Declare Function icsneoFreeObject Lib “icsneo40.dll” (ByVal hObject As IntPtr)
[DllImport(“icsneo40.dll”)] public static extern void icsneoFreeObject(IntPtr hObject);
Parameters
hObject
**** [in] Specifies the driver object created by OpenNeoDevice.
Return Values
None.
Remarks
This method is used to release any resources that were allocated by OpenNeoDevice. Applications that create neoVI handles should release them using this method, however, the intrepidCS API will release any resources that it created for the client application when the client application ends and the API is unloaded. The LabVIEW neoClosePort.vi will call the FreeObject API.
Examples
icsneoFreeObject(hObject); //Free the memory associated with our driver object
icsNeoDll.icsneoFreeObject(m_hObject); //Free the memory associated with our driver object
Call icsneoFreeObject(m_hObject) '//Free the memory associated with our driver object