• 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: what the hell is Error (1007) creating CGSWindow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what the hell is Error (1007) creating CGSWindow?


  • Subject: Re: what the hell is Error (1007) creating CGSWindow?
  • From: Michael B Johnson <email@hidden>
  • Date: Wed, 14 Jan 2009 21:16:43 -0800


On Jan 14, 2009, at 9:13 PM, Joe Ranieri wrote:

NSDictionary* dict = [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, self.textColor, NSForegroundColorAttributeName, nil];
NSAttributedString* aStr = [[[NSAttributedString alloc] initWithString:str attributes:dict] autorelease];

NSImage* image = [[NSImage alloc] initWithSize:imgSize];

You're leaking this NSImage.

sigh. I knew I should have explained this more.

I know, in the code snippet I sent, that the NSImage is being leaked. But it's tickling the bug (where in the app, I have 100s of NSImages, and I need to keep them around). Why, on a machine with 32GB of RAM, and 1.5GB of VRAM, would having 350 1920x1080 NSImages live in the app be a problem? Make my app page, sure, but kill the window server so bad that it needs to get restarted?

Not acceptable.




--> Michael B. Johnson, PhD --> http://homepage.mac.com/drwave (personal) --> http://xenia.media.mit.edu/~wave (alum) --> MPG Lead --> Pixar Animation Studios




_______________________________________________

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: what the hell is Error (1007) creating CGSWindow?
      • From: "Michael Ash" <email@hidden>
References: 
 >what the hell is Error (1007) creating CGSWindow? (From: Michael B Johnson <email@hidden>)
 >Re: what the hell is Error (1007) creating CGSWindow? (From: Joe Ranieri <email@hidden>)

  • Prev by Date: Re: what the hell is Error (1007) creating CGSWindow?
  • Next by Date: Re: Dealing with exceptions in a drawing stack
  • Previous by thread: Re: what the hell is Error (1007) creating CGSWindow?
  • Next by thread: Re: what the hell is Error (1007) creating CGSWindow?
  • Index(es):
    • Date
    • Thread