简体   繁体   English

EDSDK EdsOpenSession EXC_BAD_ACCESS信号

[英]EDSDK EdsOpenSession EXC_BAD_ACCESS signal

I believe this is similar to the thread: Canon SDK 2.11 on OSX 我认为这类似于线程: OSX上的Canon SDK 2.11

However the solution there did not work for me. 但是,那里的解决方案对我不起作用。 I'm perplexed because I'm not sure how to figure out what has changed. 我很困惑,因为我不确定如何找出发生了什么变化。 I had some working software, did not work on it over the holiday and now when I open it up to work it fails. 我有一些可运行的软件,整个假期都无法使用它,现在当我将其打开以进行工作时会失败。 Not only my software but the demo app included with the SDK, which I have never changed and indeed used to work just fine. 不仅是我的软件,还包括SDK附带的演示应用程序,我从未更改过它,并且确实可以正常使用。

I have tried with two different cameras (5DmII and 5DmIII) with the same result. 我尝试了两种不同的相机(5DmII和5DmIII),结果相同。

when I try and run the application, the camera is recognized but, as it attempts to open a session it receives a EXC_BAD_ACCESS signal. 当我尝试运行该应用程序时,会识别出摄像头,但是在尝试打开会话时会收到EXC_BAD_ACCESS信号。 In each program it happens when a call is made to EdsOpenSession() with this message... 在每个程序中,使用此消息调用EdsOpenSession()时都会发生...

*** -[NSConcreteData release]: message sent to deallocated instance 0x8157af0 ***-[NSConcreteData版本]:消息发送到已释放实例0x8157af0

Interestingly, when I tried to use the EOS Utility that would crash also. 有趣的是,当我尝试使用EOS Utility时也会崩溃。 So I updated and now that works great. 所以我更新了,现在效果很好。 I followed the suggestion in the above thread and copied the EDSDK.framework from the working bundle to my program and recompiled but I get the same results. 我按照上面线程中的建议进行操作,并将EDSDK.framework从工作包复制到我的程序中并重新编译,但得到的结果相同。

I'm trying to figure out how to contact Canon to get some information but they don't make it easy to get help so I'm appealing to the one group I know is responsive. 我试图弄清楚如何与佳能联系以获取一些信息,但是他们并没有使获得帮助变得容易,因此我呼吁我知道可以做出响应的一个小组。

The only thing I can think is that sometime over the holiday I updated some critical library without knowing it. 我唯一能想到的是,在假期的某个时候,我不知不觉地更新了一些关键库。

Has anyone else run into and been able to solve this? 还有其他人遇到过并且能够解决这个问题吗?

I'm running OS X 10.7.5, xcode 4.1, and EDSDK 2.11.3 我正在运行OS X 10.7.5,xcode 4.1和EDSDK 2.11.3

Solved this. 解决了这个。 It did turn out to be the same solution as the mentioned link. 确实与上述链接是相同的解决方案。 However, what I was missing was that I needed to also copy the new EDSDK.framework into /Library/Frameworks not just have it in my source directory. 但是,我所缺少的是我还需要将新的EDSDK.framework复制到/ Library / Frameworks中,而不仅仅是将其放在源目录中。 This may be because I don't have everything setup correctly in XCode. 这可能是因为我在XCode中没有正确设置所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM