Camera device named '' was not found - inconsistent output between applications

Camera device named '' was not found - inconsistent output between applications

Hi,

I'm having a problem with a camera on a Motion C5 tablet. The platform driver version is 1.11.2.21505

Whenever I try to take a photo I get an error saying "Camera device named '' was not found".

There is a camera on the device and I have a simple test application (basically a stripped down version of one of the samples that comes with the SDK) that does work with the camera.
There is one form and it has one button.
When the button is pressed the camera starts previewing and the image is put into a panel.

[c-sharp]public Form1()
{
InitializeComponent();

oCam = new Camera();
}

Camera oCam = null;

private void button1_Click(object sender, EventArgs e)
{
//This is optional since ReserveDevice is called in StartPreview.
oCam.ReserveDevice();

// Create a size object with width = 640 and height = 480.
// Quality of the video
Size sz = new Size(160, 120);
int frameRate = 30;

oCam.VideoSize = sz;
oCam.VideoFrameRate = frameRate;

// Turns on the camera device and starts the preview in the PictureBox.
oCam.StartPreview(pnlPreview.Handle);
}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
oCam.ReleaseDevice();
}[/c-sharp]

When I run this test application the MCA log file has the following info:

R [2009-10-08 15:53:30.487] {S0-P5228-T2776} [HDF] Process name={C:\Documents and Settings\Niall\Desktop\David_Camera_Test.exe} id={5228} attached.
R [2009-10-08 15:53:30.534] {S0-P5228-T2776} [PCF] Loaded {Device Control}. Plugin Version {1.11.2.21505}, Driver Version {4201}, Firmware Version {A06}.
W [2009-10-08 15:53:31.534] {S0-P5228-T1756} [CA_PLUGIN] CAMERA::CameraDirectShowPlugin::SupportsConcurrentInstances() FAILED: {false}
R [2009-10-08 15:53:31.534] {S0-P5228-T2776} [PCF] Loaded {Camera Device}. Plugin Version {1.11.2.21505}, Driver Version {5.1.2600.2729}, Firmware Version {UNKNOWN}.

If I copy the form from the test app into the app that is causing problems and click the button on the form the MCA log file has the following info:

W [2009-10-08 15:53:45.815] {S0-P4400-T3024} [MCA] Platform detection is disabled.
R [2009-10-08 15:53:45.846] {S0-P4400-T3024} [HDF] Process name={C:\Program Files\Utopia Business Solutions Ltd\Utopia Deliver\UtopiaDeliverPC.exe} id={4400} attached.
E [2009-10-08 15:53:45.862] {S0-P4400-T3024} [PCF] AuthenticatePlugin failed for device=Device Control
E [2009-10-08 15:53:45.862] {S0-P4400-T3024} [HDF] Initialize() failed on device Camera Device.

So basically a particular piece of code works in one application but does not work in another.

Can anyone suggest what might be causing the problem?

Thanks,

David

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

Hi David,

It looks like you may have copied the SDK IntelHealthcareSDK.dll into the folder from which you are running the application. It may be helpful if you copy your application to the c:program filesintelmcabin folder and run it so that it is picking up the right IntelHealthcare.dll. This is not necessary normally, but I think you may have something wrong on your system so this could help us to debug the issue.

Also, if you can set your MCA log file logging level to debug, delete the old MCA log file (c:tempmca.log), reproduce the error (a new log file will be created automatically), and then attach the log file to the forum posting so we can review it that would be great.

Thanks,
Steve

Quoting - Steven Murray (Intel)

Hi David,

It looks like you may have copied the SDK IntelHealthcareSDK.dll into the folder from which you are running the application. It may be helpful if you copy your application to the c:program filesintelmcabin folder and run it so that it is picking up the right IntelHealthcare.dll. This is not necessary normally, but I think you may have something wrong on your system so this could help us to debug the issue.

Also, if you can set your MCA log file logging level to debug, delete the old MCA log file (c:tempmca.log), reproduce the error (a new log file will be created automatically), and then attach the log file to the forum posting so we can review it that would be great.

Thanks,
Steve

Hi Steve,

I removed the IntelHealthCardSDK.dll from the application directory and now it's working fine.

Thanks very much for the quick response - you've saved me from a lot more headache.

Regards,

David

Leave a Comment

Please sign in to add a comment. Not a member? Join today