How can I know which objects retain an object?

Xaree Lee

Is there any way to know which objects retain a target object?

Although using ARC, I don't know why an object wasn't deallocated when it should be. I want to find which objects still retain this object. But how?

I did try using Instruments, but there is no memory leak problem. I check the whole project and I don't find any retain cycle. How can I know which objects retain this object?

Daniel Larsson

You could override the retain method and log the call stack. This will log the call stack backtrace:

- (id)retain {
    NSLog(@"%@", [NSThread callStackSymbols]);
    return [super retain];
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how can i know which button is cliked

From Dev

How does ARC know to retain the singleton object?

From Dev

How does ARC know to retain the singleton object?

From Dev

How can i know touched which game object with Unity3D

From Dev

Qt debugging: How can I know which object QCoreApplication::notifyInternal2 is sending a message to?

From Dev

How can I know which folders are created by which program?

From Dev

How can I know which folders are created by which program?

From Dev

How can i know which link i clicked in an HTML

From Dev

How to find if objects intersect if I know bounding Sphere of each object

From Dev

Pyside: How can i know which thread emitted the signal "finished"?

From Java

How can I know which button was clicked in the notification?

From Dev

How can I know which machine Juju is actually using?

From Dev

How can I know which properties are applicable for MSBuild?

From Dev

How can I know which element in a list triggered an any() function?

From Java

How can I know which radio button is selected via jQuery?

From Dev

How can I know which nodes in a cluster are actual master nodes?

From Dev

How can I know which type of process of linux will use for these?

From Dev

How can I know which child has exited in C?

From Dev

How can I know which tasks are running in the background?

From Dev

How can I know which process is using swap?

From Dev

Tcl/tk How can i know when and which radiobutton is selected?

From Dev

How can I know the cursor in which edittext in Android

From Dev

How can I know which machine Juju is actually using?

From Dev

Java jbutton in an arraylist, how can i know which one is clicked

From Dev

How can I know the process name which is opening a tcp port?

From Dev

Xcode How can I know which subclass has my class?

From Dev

How can I know in the controller which partial view made a callback

From Dev

How I can know which using-directives are missed?

From Dev

How to know which memory RAM I can use on my laptop?

Related Related

  1. 1

    how can i know which button is cliked

  2. 2

    How does ARC know to retain the singleton object?

  3. 3

    How does ARC know to retain the singleton object?

  4. 4

    How can i know touched which game object with Unity3D

  5. 5

    Qt debugging: How can I know which object QCoreApplication::notifyInternal2 is sending a message to?

  6. 6

    How can I know which folders are created by which program?

  7. 7

    How can I know which folders are created by which program?

  8. 8

    How can i know which link i clicked in an HTML

  9. 9

    How to find if objects intersect if I know bounding Sphere of each object

  10. 10

    Pyside: How can i know which thread emitted the signal "finished"?

  11. 11

    How can I know which button was clicked in the notification?

  12. 12

    How can I know which machine Juju is actually using?

  13. 13

    How can I know which properties are applicable for MSBuild?

  14. 14

    How can I know which element in a list triggered an any() function?

  15. 15

    How can I know which radio button is selected via jQuery?

  16. 16

    How can I know which nodes in a cluster are actual master nodes?

  17. 17

    How can I know which type of process of linux will use for these?

  18. 18

    How can I know which child has exited in C?

  19. 19

    How can I know which tasks are running in the background?

  20. 20

    How can I know which process is using swap?

  21. 21

    Tcl/tk How can i know when and which radiobutton is selected?

  22. 22

    How can I know the cursor in which edittext in Android

  23. 23

    How can I know which machine Juju is actually using?

  24. 24

    Java jbutton in an arraylist, how can i know which one is clicked

  25. 25

    How can I know the process name which is opening a tcp port?

  26. 26

    Xcode How can I know which subclass has my class?

  27. 27

    How can I know in the controller which partial view made a callback

  28. 28

    How I can know which using-directives are missed?

  29. 29

    How to know which memory RAM I can use on my laptop?

HotTag

Archive