Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EosException Device Busy #13

Open
Bamboozled opened this issue Apr 8, 2012 · 4 comments
Open

EosException Device Busy #13

Bamboozled opened this issue Apr 8, 2012 · 4 comments

Comments

@Bamboozled
Copy link

Hi all,
I did have this system working nicely - both the demonstration "Cockpit" and my own app using the framework. Thanks so much to Esskar.
However, this morning my own app (simply provides a command line interface to take a photo) is not working - the camera sounds like it is taking a photo, but no photo is stored either on the camera or on the pc.
I then tried using the Cockpit test again and got the following error:

Failed to take a picture.
Canon.Eos.Framework.EosException: Device Busy.
Failed to take picture at Canon.Eos.Framework.Helper.Util.Assert(U1nt32 result String message) in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\Helper\Util.cs:line 28 at Canon.Eos.Framework.EosCamera.TakePicture() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\EosCamera.cs:line 475 at Canon.Eos.CameraCockpit.Forms.CockpitForm.< HandleTakePictureButtonClick> b_0() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.CameraCockpit\Forms\CockpitForm.cs:line99 at Canon.Eos.CameraCockpit.Forms.CockpitForm.SafeCalI(Action action, Action]. exceptionHandler) in D:\esskar-Canon,Eos.Framewok-Oaacd29\Canon.Ecs.CameraCockpit\Forms\CockpitForm.cs: Iine 154

As I said, it was working. What have I changed? Any suggestions would be welcome.

@Bamboozled
Copy link
Author

Looks like I managed to accidentally sabotage the system: In my own app I had accidentally left in a "camera.SavePictuersToHost(path)" just before camera.TakePicture(). As discussed in issue #11, this causes problems for cmd line programs.
Interestingly, this seemed to get the camera sufficiently confused that the demonstration Cockpit also didn't work.

@vrnew
Copy link

vrnew commented Jun 20, 2012

I used "camera.SavePictuersToHost(path)" before camera.TakePicture(), and got the same error.
Canon.Eos.Framework.EosException: Device Busy.
Failed to lock camera.
at Canon.Eos.Framework.Helper.Util.Assert(U1nt32 result String message) in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\Helper\Util.cs:line 28 at Canon.Eos.Framework.EosCamera.Lock() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\EosCamera.cs:line 475 at Canon.Eos.CameraCockpit.Forms.CockpitForm.< HandleTakePictureButtonClick> b_0() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.CameraCockpit\Forms\CockpitForm.cs:line99 at Canon.Eos.CameraCockpit.Forms.CockpitForm.SafeCalI(Action action, Action]. exceptionHandler) in D:\esskar-Canon,Eos.Framewok-Oaacd29\Canon.Ecs.CameraCockpit\Forms\CockpitForm.cs: Iine 154

@vrnew
Copy link

vrnew commented Jun 21, 2012

I used the winform exmaple, cockpitform.

@vrnew
Copy link

vrnew commented Jun 21, 2012

Sometimes it worked, and sometimes it got the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants