开发者

(iphone) weird EXC_BAD_ACCESS , at A::A() in backtrace but code points to B::B()

开发者 https://www.devze.com 2023-03-06 11:20 出处:网络
In Xcode 4, I\'m having this weird EXC_BAD_ACCESS. where backtrace shows 0 A::A() (in Debug navigator) code is pointing at B::B() (in Editor view, A and B class doesn\'t share class hierarchy)

In Xcode 4,

I'm having this weird EXC_BAD_ACCESS.

where backtrace shows 0 A::A() (in Debug navigator) code is pointing at B::B() (in Editor view, A and B class doesn't share class hierarchy)

Both A & B are c++ struct.

I've tried cleaning the project.

(I suspect some object files didn't get cleaned up.

eager to know if there is a way 开发者_运维知识库to force-cleaning by removing build directory)

Thank you


Check if you have released or autoreleased some unallocated member.


turned out it was compiler being llvm-gcc

reverting back to gcc solved the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消