c# - I'm trying to use a dll file name: CDSDK.dll but getting an error what is this error? -
this error getting while referencing cdsdk.dll:
call pinvoke function 'canon_camera_control!rdc.camerasdk.cdapi::cdstartsdk' has unbalanced stack. because managed pinvoke signature not match unmanaged target signature. check calling convention , parameters of pinvoke signature match target unmanaged signature.
the erorr on file called camera.cs it's part of project control canon camera through pc.
i missing dll file downloaded twice 2 places. @ first time dll file 300kb , gave error program didn't stop used logger log out error:
5/2/2013--11:02 pm ==> error! cdstartsdk c000060 5/2/2013--11:02 pm ==> error! cdenumdevicereset c0000f1 5/2/2013--11:02 pm ==> error! cdfinishsdk c0000f1
then downloaded second file 298kb , gave me error now.
the exception on camers.cs on line number 929:
err = (uint32)cdapi.cdstartsdk(ref version, 0);
this link solution/project on skydrive updated including 2 directores:
cdsdk1 , cdsdk2 in each there cdsdk.dll file 1 928kb or , other 300kb or so.
each 1 give different error.
https://skydrive.live.com/redir?resid=eb1c71c44c3976d5!202&authkey=!aae7qvxizbmne1q
the project name download is: canon_camera_control
this complete exception message secon cdsdk.dll file :
pinvokestackimbalance detected message: call pinvoke function 'canon_camera_control!rdc.camerasdk.cdapi::cdstartsdk' has unbalanced stack. because managed pinvoke signature not match unmanaged target signature. check calling convention , parameters of pinvoke signature match target unmanaged signature.
i googled deep , didn't find clue/s error/s.
you have wrong p/invoke signature. try unsing p/invoke interop assistant utility (http://clrinterop.codeplex.com/releases/view/14120) automatically generate correct marshalling attributes.
Comments
Post a Comment