private void CheckConnection( ) { if ( deviceHandle == IntPtr.Zero ) { throw new NotConnectedException( "No established connection to XIMEA camera." ); } } }