Unexpected exception while downloading from Canon
Posted: Thu Apr 26, 2018 6:13 pm
I am having an issue that is totally kicking my butt. While capturing photos every few seconds from a Canon camera, less than 5% of the time we are seeing the following exception:
As you can see, it is failing at a call to the Canon SDK, so I am at a loss how to address this. We have seen this on two computers using different Canon cameras.
I have tried to duplicate this using the example program, but can't make it fail. Anyone else see anything like this? Any suggestions on what I might try or an alternative way of doing this?
Bruce
Code: Select all
Unexpected exception while downloading.
Object reference not set to an instance of an object.
at Canon.Eos.Framework.Internal.EosImageTransporter.Download(IntPtr directoryItem, UInt64 size, IntPtr stream) in C:\Users\bvanderw\Dropbox\Documents\Visual Studio 2017\Projects\kOS\kos-win\DigiCam\Canon.Eos.Framework\Internal\EosImageTransporter.cs:line 62
at Canon.Eos.Framework.Internal.EosImageTransporter.Transport(IntPtr directoryItem, UInt64 size, IntPtr stream, Boolean destroyStream) in C:\Users\bvanderw\Dropbox\Documents\Visual Studio 2017\Projects\kOS\kos-win\DigiCam\Canon.Eos.Framework\Internal\EosImageTransporter.cs:line 74
at Canon.Eos.Framework.Internal.EosImageTransporter.TransportAsFileName(IntPtr directoryItem, String imagePath, IntPtr context) in C:\Users\bvanderw\Dropbox\Documents\Visual Studio 2017\Projects\kOS\kos-win\DigiCam\Canon.Eos.Framework\Internal\EosImageTransporter.cs:line 101
at CameraControl.Devices.Canon.CanonSDKBase.TransferFile(Object o, String filename)
at Canon.Eos.Framework.Internal.SDK.Edsdk.EdsDownload(IntPtr inDirItemRef, UInt64 inReadSize, IntPtr outStream)
at Canon.Eos.Framework.Internal.EosImageTransporter.Download(IntPtr directoryItem, UInt64 size, IntPtr stream) in C:\Users\bvanderw\Dropbox\Documents\Visual Studio 2017\Projects\kOS\kos-win\DigiCam\Canon.Eos.Framework\Internal\EosImageTransporter.cs:line 53
I have tried to duplicate this using the example program, but can't make it fail. Anyone else see anything like this? Any suggestions on what I might try or an alternative way of doing this?
Bruce