Disconnect
Top  Previous  Next

Description

Disconnects the virtual camera from the currently selected interface and brings it offline.

Syntax

int Disconnect();

Parameters [C/C++]
 
None  

Return Values

S_OK  
Success  
E_FAIL  
Failure  


Example


This fragment of a code disconnects a camera from the network and reconfigures its features:

m_pCamera->Disconnect();  
m_pCamera->DeleteFeature("TestFeatureInt")  
m_pCamera->CreateFeature(FEATURE_TYPE_STRING, "TestFeatureString", "Root", FEATURE_ACCESS_RW);  
m_pCamera->SetFeatureString("TestFeatureString", "Hello, World")  


Remarks


Calling this method is equivalent to disconnecting a GigE Vision camera from the network. It stops all the acquisition and control threads and return the virtual camera into the configuration state. In this state new features can be added and existing features can be deleted.

To bring the camera back online, use Connect.