问题描述
我正在 OS X 10.11.2 上的 Xcode 7.2 中编写相机控制程序,我的程序每隔一段时间就会在 EdsInitializeSDK() 处崩溃.大多数在线解决方案都建议下载其他 EDSDK.framework 文件,但这对我不起作用.此外,大多数解决方案都是在大约 3 年前编写的.
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?
推荐答案
这似乎与 OSX 10.11+ El Capitan 和较旧的"EDSDK 之间的不兼容有关,对于我们将其与 swift 结合使用时.在 OSX 10.10 Yosemite 中似乎不是问题.佳能 EOS Utility 和其他纯 Objective-c/C++ 大多不受此影响.我可以确认 2016 年 4 月 8 日发布的 EDSDK 3.4 包含这方面的修复.
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.
这篇关于EXC_BAD_ACCESS 来自佳能的 EDSDK EdsInitializeSDK() API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!