public string GetLastError(PtGreyCamera camera) { string error = ""; if (camera != null) { error = camera.GetLastError(); } return(error); }