IsMasterApplication
Top  Previous  Next

Description

Checks if the application has an exclusive control over the selected camera.


Syntax


[VB]
Value=objActiveGige.IsMasterApplication 


[C/C++]
HRESULT IsMasterApplication( BOOL pValue );


Data Types
[VB]

Return value: Boolean


Parameters
[C/C++]
 
pValue [out, retval]  
Pointer to the boolean value which is TRUE if the application has an exclusive control and FALSE otherwise  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example checks the status of the camera control to enable or disable the exposure slider:

if ActiveGigE1.IsMasterApplicatoin then  
Slider1.Enable(TRUE)  
else  
Slider1.Enable(FALSE)  
endif  
      
Remarks


This method is usually used in combination with the Multicast property. When the camera is set in the Multicast mode, only the master application (the one that was launched first and initiated the multicast) can control the camera settings. Other applications that typically run on other computers in the network can display the video and report camera parameters, but cannot modify them. The IsMasterApplication method can be used to find out if an application works in the slave mode and disable some user interface elements.

In the unicast mode this method can be used to display an error message when a second application or process is trying to get an access to the same camera.