开发者

Zombie CADisplayLink?

开发者 https://www.devze.com 2023-01-05 09:23 出处:网络
Is it possible开发者_StackOverflow社区 that a CADisplayLink gets called one or two more times even after being invalidated?

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

精彩评论

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

关注公众号