• 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: Thu, 15 Jan 2009 09:37:21 -0800


On Jan 15, 2009, at 9:35 AM, David Duncan wrote:

On Jan 15, 2009, at 9:32 AM, David Duncan wrote:

On Jan 14, 2009, at 9:10 PM, Michael B Johnson wrote:

So I have an application that has been bedeviled by a nasty, nasty bug for years that manifests itself as an exception being thrown with:

Error (1007) creating CGSWindow

At that point, the user has no choice but to reboot the machine - the Window Server is pretty much hoarked.


You have too many cached NSImages. Because NSImage uses windows to cache images, and because these windows are a system wide resource managed by the Window Server, eventually it can no longer create new windows in any process. The work around is to use Core Graphics directly, which doesn't suffer from this problem.


Or to turn off caching of NSImages via - setCacheMode:NSImageCacheNever. Depending on how your using your images, one might offer more performance than the other.

oooohh... This sounds like a very promising workaround.

I'll give that a shot!


- wave _______________________________________________

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: 
 >what the hell is Error (1007) creating CGSWindow? (From: Michael B Johnson <email@hidden>)
 >Re: what the hell is Error (1007) creating CGSWindow? (From: David Duncan <email@hidden>)
 >Re: what the hell is Error (1007) creating CGSWindow? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: what the hell is Error (1007) creating CGSWindow?
  • Next by Date: Re: NIB's owner doesn't get released because of NSArrayController
  • 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