• 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
NSImage NSInternalInconsistencyException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage NSInternalInconsistencyException


  • Subject: NSImage NSInternalInconsistencyException
  • From: "M. Carlson" <email@hidden>
  • Date: Sun, 22 Jan 2006 04:44:18 +0000

I'm trying to use NSImage -TIFFRepresentation in a Foundation Tool.

This generates a nasty exception:
*** Uncaught exception: <NSInternalInconsistencyException> Error (1002) creating CGSWindow


The backtrace is:

#0 0x92901620 in _NSRaiseError
#1 0x9290135c in +[NSException raise:format:]
#2 0x936c7ebc in _NXCreateWindow
#3 0x936dbe4c in CreateWindowNamed
#4 0x936dbc00 in CreateCacheWindow
#5 0x936dbb70 in NewCacheWindowInfo
#6 0x936db73c in GetSharedSpaceFor
#7 0x936db480 in _NXAllocateImageCache
#8 0x936db0a4 in -[NSCachedImageRep _initWithSize:depth:separate:alpha:allowDeep:]
#9 0x936dcaac in -[NSImage _focusOnCache:]
#10 0x936dc7c4 in -[NSImage _cacheRepresentation:stayFocused:]
#11 0x93725f80 in -[NSImage _cacheRepresentation:]
#12 0x937bd9a4 in -[NSImage TIFFRepresentationUsingCompression:factor:]
#13 0x00002ac4 in main at mvproc.m:1214


Obviously, it wants to generate an ad hoc CGSWindow, but my tool requires Foundation, Cocoa, and QuickTime, too. What to do?

I'm running on a dual G5 2GHz PM, OSX 10.4.4, Xcode 2.2.
--M


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSImage NSInternalInconsistencyException
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Reading a plain text file
  • Next by Date: NSToolbar bindings?
  • Previous by thread: Re: Reading a plain text file
  • Next by thread: Re: NSImage NSInternalInconsistencyException
  • Index(es):
    • Date
    • Thread