J
Jeremy.Mandi.Friesen
I am developing for a Symbol MC9090G device, and my code, as follows,
generates an InvalidOperationException with the message "An unknown
error has
occurred".
CameraCaptureDialog cameraCapture = new CameraCaptureDialog();
cameraCapture.Owner = this;
cameraCapture.DefaultFileName = cecameraDefaultPictureFileName +
cecameraDefaultPictureExtension;
cameraCapture.Mode = CameraCaptureMode.Still;
cameraCapture.StillQuality = CameraCaptureStillQuality.Low;
cameraCapture.Resolution = new
Size(Int32.Parse(cecameraDefaultResolutionWidth),
Int32.Parse(cecameraDefaultResolutionHeight));
cameraCapture.Title = cecameraDefaultTitle;
cameraCapture.InitialDirectory = "\\";
try
{
// Displays the "Camera Capture" dialog box
if (DialogResult.OK == cameraCapture.ShowDialog())
{
// The method completed successfully.
}
I've not yet found a good answer in any form or newsgroup to fix this.
Killing processes didn't seem to help (I only killed ones I was sure
of, the
remaining processes, in order of thread count, are:
device.exe
gwes.exe
filesys.exe
services.exe
shell32.exe
SymScriptWM.exe
pMSNServer.exe
repllog.exe
connmgr.exe
rapiclnt.exe
ccpwcli.exe
srvtrust.exe
ccregcli.exe
SACommLoader.exe
WCLAUNCH.exe
tmail.exe
NK.exe
abstart.exe
poutlook.exe
keyicons.exe)
I couldn't find any wierd registry entries on the device either, just
the 3
supported resolutions in the
HKEY_LOCAL_MACHINE/Software/Microsoft/Pictures/ImageSendSize of
640x480,
320x240, and 160x120 (the last of which I am using, along with low
quality
mode as you can see in the above code).
generates an InvalidOperationException with the message "An unknown
error has
occurred".
CameraCaptureDialog cameraCapture = new CameraCaptureDialog();
cameraCapture.Owner = this;
cameraCapture.DefaultFileName = cecameraDefaultPictureFileName +
cecameraDefaultPictureExtension;
cameraCapture.Mode = CameraCaptureMode.Still;
cameraCapture.StillQuality = CameraCaptureStillQuality.Low;
cameraCapture.Resolution = new
Size(Int32.Parse(cecameraDefaultResolutionWidth),
Int32.Parse(cecameraDefaultResolutionHeight));
cameraCapture.Title = cecameraDefaultTitle;
cameraCapture.InitialDirectory = "\\";
try
{
// Displays the "Camera Capture" dialog box
if (DialogResult.OK == cameraCapture.ShowDialog())
{
// The method completed successfully.
}
I've not yet found a good answer in any form or newsgroup to fix this.
Killing processes didn't seem to help (I only killed ones I was sure
of, the
remaining processes, in order of thread count, are:
device.exe
gwes.exe
filesys.exe
services.exe
shell32.exe
SymScriptWM.exe
pMSNServer.exe
repllog.exe
connmgr.exe
rapiclnt.exe
ccpwcli.exe
srvtrust.exe
ccregcli.exe
SACommLoader.exe
WCLAUNCH.exe
tmail.exe
NK.exe
abstart.exe
poutlook.exe
keyicons.exe)
I couldn't find any wierd registry entries on the device either, just
the 3
supported resolutions in the
HKEY_LOCAL_MACHINE/Software/Microsoft/Pictures/ImageSendSize of
640x480,
320x240, and 160x120 (the last of which I am using, along with low
quality
mode as you can see in the above code).