开发者

Zombie CADisplayLink?

Is it possible开发者_StackOverflow社区 that a CADisplayLink gets called one or two more times even after being invalidated?

It looks that way to me, and this is causing me a problem because the target object is called where it's already gone so it crashes.

Thanks!


According to the docs, "The newly constructed display link retains the target." so it shouldn't crash in any case.

EDIT: Try setting the environment variables NSZombieEnabled=YES and NSDeallocateZombies=NO (the latter is the default, apparently), which may help debug the crash.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜