FreeObject Method - intrepidcs API¶
C/C++ declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB.NET example - C# example
This method releases system resources used by the neoVI device.
C/C++ Declare¶
void _stdcall icsneoFreeObject(void * hObject);
Visual Basic .NET Declare¶
Public Declare Function icsneoFreeObject Lib “icsneo40.dll” (ByVal hObject As IntPtr)
C# Declare¶
[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¶
C/C++ Example¶
icsneoFreeObject(hObject); //Free the memory associated with our driver object
C# Example¶
icsNeoDll.icsneoFreeObject(m_hObject); //Free the memory associated with our driver object
Visual Basic .NET Example¶
Call icsneoFreeObject(m_hObject) '//Free the memory associated with our driver object