Open soar-penguin opened 12 years ago
i just merged a possible bugfix from simon that may fixes your issue.
the bugfix not suitable for me. I had fix it before you merged this issue. my problem may be just because the EDSDK.dll. when i debug the program, the problem happened when the program call the api the dll provide. just like the EdsSendCommand and so on. the program is crashed, can't continue.
@esskar could you tell me why those function must change the "CallingConvention"? thank you!
[DllImport("EDSDK.dll", EntryPoint="EdsCreateEvfImageRef", CallingConvention=CallingConvention.Cdecl)]
public extern static uint EdsCreateEvfImageRefCdecl(IntPtr inStreamRef, out IntPtr outEvfImageRef);
[DllImport("EDSDK.dll", EntryPoint="EdsDownloadEvfImage", CallingConvention=CallingConvention.Cdecl)]
public extern static uint EdsDownloadEvfImageCdecl(IntPtr inCameraRef, IntPtr outEvfImageRef);
@soar-penguin its has to be compiled for x86 not i64, changing the signature to Unit32 and removing the CallingConvention=CallingConvention.Cdecl
should help
we development a software control two cameras use Canon.Eos.Framework. when we run it in windows xp, it's ok, but when run it in windows 7, start it is OK. it can start liveView mode when in open the software. but when i hit the button take picture or change the driver len use(EDSDK.EvfDriveLens_Far2), the software is crashed. can't continue. i test in several machine. three installed XP is OK. two installed windows 7 the same problem. any idea? thank you!