• 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: Lingering windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lingering windows


  • Subject: Re: Lingering windows
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 10 Aug 2011 14:33:31 +1000

On Aug 10, 2011, at 3:51 AM, Quincey Morris wrote:

> use the debugger's 'info gc-roots' command (having set a breakpoint somewhere after the window has been closed and the collector has had time to run, preferably) to find out what's keeping the window alive.

So I get this:

info gc-roots 0x4011fcca0
Number of roots: 7
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe288  Frame level: 1  Symbol: <unknown>
   1 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe248  Frame level: 0  Symbol: self
   1 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe238  Frame level: 0  Symbol: it
   1 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe278  Frame level: 1  Symbol: <unknown>
   1 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: bytes   rc:   1  Address: 0x0000000400efa2e0
   1 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe308  Frame level: 3  Symbol: <unknown>
   1 Kind: bytes   rc:   1  Address: 0x0000000400efa2e0
   2 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow
Root:
   0 Kind: stack   rc:   0  Address: 0x00007fff5fbfe260  Frame level: 0  Symbol: <unknown>
   1 Kind: bytes   rc:   1  Address: 0x0000000400efa2e0
   2 Kind: object  rc:   0  Address: 0x00000004011fcca0  Class: MyWindow

Anything useful there?

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

_______________________________________________

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

  • Follow-Ups:
    • Re: Lingering windows
      • From: Quincey Morris <email@hidden>
References: 
 >Lingering windows (From: Shane Stanley <email@hidden>)
 >Re: Lingering windows (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Lion's new "Resume" feature, document restoration, and splash screens
  • Next by Date: Re: Lingering windows
  • Previous by thread: Re: Lingering windows
  • Next by thread: Re: Lingering windows
  • Index(es):
    • Date
    • Thread