On Jan 15, 2009, at 09:32:00, 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.

My initial reaction to this is that Apple should change the implementation of NSImage to not use system-wide resources to cache the images. Is that not a feasible long-term solution (by long-term, I mean, longer than Michael needs, but say, in a 10.6 dot release)?


--
Rick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to