My camera capture method below, no longer seems to works on my i-mate SP5 (HTC Tornado)..
The code worked and ran perfectly for the last few months, on both NETCF2..0 and the Beta of NetCF2.0 Service pack 1, but since I upgraded my device today to the new release candidate (non Beta), it no longer works and throws an InvalidOperation Exception on CameraCaptureDialog.ShowDialog(); method.
The .Net themselves seem to work alright, except the camera functionality no longer works
/********************************************************************** * METHOD: startCamera **********************************************************************/ public String startCamera(CameraCaptureMode incCaptureMode) { /******************************************** * initiate Camera ********************************************/ CameraCaptureDialog ccd = new CameraCaptureDialog();
/******************************************** * Camera Settings ********************************************/ ccd.Mode = incCaptureMode; ccd.Resolution = _CaptureSettings.Default_PictureSize; ccd.StillQuality = _CaptureSettings.Default_Quality; ccd.InitialDirectory = _Settings.Photo_DIRECTORY;
/******************************************** * Display Camera ********************************************/ ccd.ShowDialog(); return ccd.FileName; }/************* End-Method ************/
Smart Device Development19
|