Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again
Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again
- Subject: Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again
- From: Rick Mann <email@hidden>
- Date: Wed, 01 Aug 2012 14:47:52 -0700
On Aug 1, 2012, at 14:45 , Fritz Anderson <email@hidden> wrote:
> On 1 Aug 2012, at 3:58 PM, Rick Mann <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden