Canon Community Canon Community

New Contributor
Posts: 1
Registered: ‎05-20-2020

EDSDK Handler for take pictures

I am trying to create a Program for my Canon EOS Rebel T7, but when I try to send the command EDSDK.EdsSendCommand(CamConn, EDSDK.CameraCommand_TakePicture, 0) the program returns the error EDS_ERR_INVALID_HANDLE, how I can add a proper Handle for taking pictures?




Print of code here

Posts: 11,987
Registered: ‎08-13-2015

Re: EDSDK Handler for take pictures

These forums are intended to provide support to end users of Canon products, not software developers.


I know nothing about the EOSDK, but I do know programming.  As far as your issues goes, I view it as similar to a car not running because you did not put gas in the tank.  You probably need to call GetHandle prior to making that method call.


"Doctor told me to get out and walk, so I bought a Canon."
Esteemed Contributor
Posts: 4,987
Registered: ‎02-17-2016

Re: EDSDK Handler for take pictures

And if you *did* call InitHandle or GetHandle or whatever it is called, you need to check to make sure you get a valid handle - probably anything but NULL - before you do any other calls.

powered by Lithium

LIKE US on Facebook FOLLOW US on Twitter WATCH US on YouTube CONNECT WITH US on Linkedin WATCH US on Vimeo FOLLOW US on Instagram SHOP CANON at the Canon Online Store
© Canon U.S.A., Inc.   |    Terms of Use   |    Privacy Statement