Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.65 KB

File metadata and controls

64 lines (48 loc) · 1.65 KB
cover coverY
../../.gitbook/assets/new-cover-image.png
0

FreeObject Method - IntrepidCS API

This method releases system resources used by the neoVI device.

{% tabs %} {% tab title="C/C++ Declare" %}

void _stdcall icsneoFreeObject(void * hObject);

{% endtab %}

{% tab title="Visual Basic .NET Declare" %}

Public Declare Function icsneoFreeObject Lib “icsneo40.dll” (ByVal hObject As IntPtr)

{% endtab %}

{% tab title="C# Declare" %}

[DllImport(icsneo40.dll)] public static extern void icsneoFreeObject(IntPtr hObject);

{% endtab %} {% endtabs %}

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

{% tabs %} {% tab title="C/C++ Example" %}

icsneoFreeObject(hObject);  //Free the memory associated with our driver object

{% endtab %}

{% tab title="C# Example" %}

icsNeoDll.icsneoFreeObject(m_hObject); //Free the memory associated with our driver object

{% endtab %}

{% tab title="Visual Basic .NET Example" %}

Call icsneoFreeObject(m_hObject)   '//Free the memory associated with our driver object

{% endtab %} {% endtabs %}