Code Worked Once Only

Code Worked Once Only

Hi People,

I created a C# program to capture image from USB camera using the MCA SDK.
When I first ran the program, it worked fine. It could preview and capture the image.
However, when I clicked the 'Stop' button, it would hang. I forced the application to quit.
So I wanted to test for the second time, but it did not work at all. It would not preview or capture image.

This happened to my friend too. So does anybody know what is wrong and the solution to this problem?
Any input will be very much appreciated.


3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Hi WendyK,

When you stop the preview there are two things to do:
1: stop Preview: oCam.stopPreview();
2. release device: oCam.releaseDevice();

Maybe you can send us your source code and the experts and rookies (like me) can have a look at it.



Hi Markster,

Yes I have put in those methods and it did work.
I think the error is because of the camera. The camera often hangs!
So when it hangs, it won't work and vice versa.

Thanks for your help!

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui