views:

20

answers:

1

Hi everyone,
Is it possible 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!

A: 

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.

tc.