Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again

  • On Aug 1, 2012, at 14:45 , Fritz Anderson <fritza...> wrote:

    > On 1 Aug 2012, at 3:58 PM, Rick Mann <rmann...> wrote:
    >
    >> I know how to run instruments. Show me the documentation that tells me how to actually do something with Allocations. If you look at my previous email on the subject, you can see that I ran Allocations way back when it was suggested, and found NO allocations of NSFileHandle.
    >
    > My book has a couple of chapters on Instruments, including a lengthy example of how to use the Allocations instrument.
    >
    > I am reluctant to self-promote, but it's responsive to your search for documentation.

    No, please do. I appreciate it. I got a little farther by realizing I had to search for NSConcreteFileHandle (or just "filehandle"). But near as I can tell, it's still being deallocated, just leaving behind the file descriptor.

    Instruments behaves inconsistently for me, and it's hard to understand why. I also can't find explanations for numerous things I see in the UI, things that don't make any sense (like percentages on lines of code that never execute).

    --
    Rick
previous month august 2012 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today