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

Support for Type 1 cameras #5

Open
infinity257 opened this issue Feb 1, 2012 · 16 comments
Open

Support for Type 1 cameras #5

infinity257 opened this issue Feb 1, 2012 · 16 comments

Comments

@infinity257
Copy link

Hi esskar. I've tried to take a picture with my eos 20d using your framework. Program releases the shutter but after that, nothing is displayed on the panel, and i get following message in the console:
A first chance exception of type 'Canon.Eos.Framework.EosException' occurred in Canon.Eos.Framework.dll

Camera is set to Normal mode. According the API (I have edsdk v2.7) eos 20d is "type 1" camera. In the API ref. for kEdsObjectEvent_DirItemCreated there's a note

"Because objects are not indicated for type 1 protocol standard cameras, (that is, objects are indicated as NULL), you must again retrieve child objects under the camera object to identify the new objects." Myabe this is related to the issue. Do you know how to sole this problem? Thank you in advance and please, forgive me my poor language skills.

@esskar
Copy link
Owner

esskar commented Feb 1, 2012

hi,

good question. Can you paste the complete exception here ( so that i can see where this is happening).
thanks.

@infinity257
Copy link
Author

I get nothing more than this (whole output):

'Canon.Eos.CameraCockpit.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
[ ... ]
'Canon.Eos.CameraCockpit.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
The thread '' (0x354) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0xf78) has exited with code 0 (0x0).
'Canon.Eos.CameraCockpit.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\edu\Projekty\EOSFramework\Canon.Eos.CameraCockpit\bin\Debug\Canon.Eos.CameraCockpit.exe', Symbols loaded.
'Canon.Eos.CameraCockpit.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\edu\Projekty\EOSFramework\Canon.Eos.CameraCockpit\bin\Debug\Canon.Eos.Framework.dll', Symbols loaded.
[ BEFORE SHUTTER RELEASE ]
A first chance exception of type 'Canon.Eos.Framework.EosException' occurred in Canon.Eos.Framework.dll
[ AFTER SHUTTER RELEASE ]

I'm testing similar C# wrapper for EDSDK by Wayne Hartman available here. There I had similar problem I think. After releasing the shutter I was receving exception EDS_ERR_HANDLE_NOT_FOUND at EDSDK.EdsGetDirectoryItemInfo. And value of EdsDirectoryItemRef dirItem parametr passed to the image downloading function was 0. So maybe the eos 20d needs image retrieval method described in the note above. If information I've given isn't specific enough, please explain me how do I get more specific details.

@esskar
Copy link
Owner

esskar commented Feb 1, 2012

i just uploaded a new version; this one should display the exception in a message box.
When the message is displayed, use CTRL+C to copy the message to your clipboard, and the post it here please.
Thanks.

@infinity257
Copy link
Author

I've updated framework (cleaned everything before) but I don't get any message box. Still same exception (in console) as mentioned above. Those radio buttons, etc. don't do anything at the moment, right? I'm new to C# and I don't see action listners impl. anywhere. Can you explain the meaning of the note from API i've posted?

@esskar
Copy link
Owner

esskar commented Feb 1, 2012

i do not know that meaning by now. and without any detailed error message, i am afraid i need to postpone that issue for now.

@esskar
Copy link
Owner

esskar commented Feb 1, 2012

can you try and update to the SDK 2.10. That is the one i am using

@infinity257
Copy link
Author

I've updated sdk, but it didn't make any change. C++ sample app provided with SDK works fine though. So I'll do my best to analyze downloading implementation used there and maybe I'll be able to modify your framework so it works with 20d. Should you come to anything that could solve this problem, please let me know. Cheers.

@esskar
Copy link
Owner

esskar commented Feb 2, 2012

Hi, can you check if the camera.IsLegacy properrty is set to true?

@infinity257
Copy link
Author

camera.IsLegacy is set to true. I'm checking it right before shutter release.

@esskar
Copy link
Owner

esskar commented Feb 4, 2012

ok. thanks. then i know what is.
will fix it soon

2012/2/4 infinity257
[email protected]:

camera.IsLegacy is set to true. I'm checking it right before shutter release.


Reply to this email directly or view it on GitHub:
#5 (comment)

@esskar
Copy link
Owner

esskar commented Feb 4, 2012

hi, i tried to fix it: 4ad33f0
can you please get the latest version and try again. thanks.

@infinity257
Copy link
Author

Hi, I've launched latest version and got his exception:

An unhandled exception of type 'Canon.Eos.Framework.EosPropertyException' occurred in Canon.Eos.Framework.dll
Additional information: Failed to get property integer data: propertyId 1281

What's more, camera remains in locked status (indicates BUSY) after I terminate the app (checked it in proccess manager). I have to turn it off to unlock it.

@esskar
Copy link
Owner

esskar commented Feb 10, 2012

fixed

@swordholder
Copy link

Hi, I have the same problem as mentioned by infinity257

An unhandled exception of type 'Canon.Eos.Framework.EosPropertyException' occurred in Canon.Eos.Framework.dll
Additional information: Failed to get property integer data: property Id 1294

@tsdaemon
Copy link

hi. Got the same exception as mentioned by sword holder, when try to use live view. Camera Canon EOS 40d

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

5 participants
@esskar @swordholder @infinity257 @tsdaemon and others