CameraUnplugged
Top  Previous  Next

Description

This event is fired each time a camera gets disconnected from the 1394 bus.


Syntax


[VB]
Private Sub objActiveDcam_CameraUnplugged(ByVal Camera As Integer)


[C/C++]
HRESULT Fire_CameraUnplugged(SHORT Camera);


Data Types
[VB]

Camera: Integer  


Parameters
[C/C++]

Camera  
The index of the camera that has been disconnected.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the CameraUnplugged to detect when the currently selected camera is unplugged:

Private Sub ActiveDcam1_CameraUnplugged(ByVal Camera As Integer)  
If ActiveDcam1.Camera = Camera Then  
MsgBox "Currently selected camera has been disconnected"  
End IfEnd Sub  
 

Remarks

The CameraUnplugged event will only be raised, if DCAM 1394 Camera Driver is installed for the camera being connected. See Driver Setup for more details.