• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File still in use after closing document window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File still in use after closing document window


  • Subject: Re: File still in use after closing document window
  • From: Bill Bumgarner <email@hidden>
  • Date: Tue, 03 Jun 2008 15:20:43 -0700

On Jun 3, 2008, at 2:06 PM, Antonio Nunes wrote:
On Jun 3, 2008, at 5:52 PM, Bill Bumgarner wrote:
Why can't you pause the program in Xcode? Because it is running in Instruments?
Yes, I could find no way to pause it after Start with Performance Tool->Leaks (or Object Allocations for that matter).
But then I realised I should attach the debugger to it in Xcode after starting it with Instruments, and now I can pause the session. Interestingly, when I do that and check the gc-roots and gc- references info in the paused application, where ObjectAlloc claims the CGPDFDocument is still in existence, the info command returns 0 roots and no references. Who do I believe?

It may be that the CGPDFDocument has been CFRetain'd by something in the system somewhere and has not been released. It might be a bug in the framework. If you can, file a bug with your app attached and someone will have a look (send me the bug #).


You'll want the backtrace of all of the retains and releases on the object to gain a clue as to what might be over-retaining.

(Yes, CFRetain/CFRelease still retain/release objects under GC. Not suggested to do, but it happens between certain subsystems.)

b.bum

_______________________________________________

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


References: 
 >File still in use after closing document window (From: Antonio Nunes <email@hidden>)
 >Re: File still in use after closing document window (From: "Hamish Allan" <email@hidden>)
 >Re: File still in use after closing document window (From: Antonio Nunes <email@hidden>)
 >Re: File still in use after closing document window (From: Bill Bumgarner <email@hidden>)
 >Re: File still in use after closing document window (From: Antonio Nunes <email@hidden>)
 >Re: File still in use after closing document window (From: Bill Bumgarner <email@hidden>)
 >Re: File still in use after closing document window (From: Antonio Nunes <email@hidden>)
 >Re: File still in use after closing document window (From: Bill Bumgarner <email@hidden>)
 >Re: File still in use after closing document window (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: Copying NSTextStorage
  • Next by Date: re: CoreData file format stability
  • Previous by thread: Re: File still in use after closing document window
  • Next by thread: How to TAB away from an NSCollectionView
  • Index(es):
    • Date
    • Thread