EXC_BAD_ACCESS from Canon's EDSDK EdsInitializeSDK() API

时光怂恿深爱的人放手 提交于 2019-12-11 11:07:03

问题


I'm writing a camera control program in Xcode 7.2 on OS X 10.11.2 and every once and a while my program will crash at EdsInitializeSDK(). Most of the solutions online suggest downloading other EDSDK.framework file, but this hasn't worked for me. Also, most of the solutions were written almost 3 years ago.

The thing that doesn't make sense to me is that the program runs most of the time and only occasionally crashes. Has anyone found a work around to prevent the bad access?


回答1:


This seems to be related to an incompatibility between OSX 10.11+ El Capitan and the "older" EDSDKs, for us when using it in combination with swift. It seems not to be a problem in OSX 10.10 Yosemite. Canon EOS Utility, and other pure objective-c / C++ are mostly unaffected by this. I can confirm that EDSDK 3.4, released Apr 8 2016, includes fixes in this area.



来源:https://stackoverflow.com/questions/35611236/exc-bad-access-from-canons-edsdk-edsinitializesdk-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!