开发者

Help diagnosing crash in Cocoa framework - possible memory leak?

开发者_JS百科I'm currently migrating the Fragaria framework from a GC-only environment to GC being supported. After the work was done (or what I thought had to be done to make it work) I was able to run the examples that come with the framework without any problems and Instruments didn't show any major memory leaks.

I included non-GC Fragaria in my non-GC application and it crashes as soon as I place the cursor on it. To be honest the usage pattern is different from the examples as I'm embedding it in an instance of NSViewController instead of NSDocument.

Can you give me some tips on how to debug this? I'm a bit lost on where to proceed now.


First thing to do is Build and Analyze the code, then fix any problems it finds.

Next, try running with Zombie detection enabled (google NSZombie).

Finally, each crash's stacktrace should give you a pretty good idea where things have gone off the rails.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜