Re: Converting a CFImageRef to a NSImage
Re: Converting a CFImageRef to a NSImage
- Subject: Re: Converting a CFImageRef to a NSImage
- From: "Felipe Monteiro de Carvalho" <email@hidden>
- Date: Thu, 5 Jun 2008 21:54:53 -0300
Ok, things improved a little bit. Now the classes are created
correctly, but it crashes when I call lockFocus =/ Any ideas?
Here is the error message and backtrace:
2008-06-05 21:53:31.854 Wndtray[5100] *** Uncaught exception:
<NSInternalInconsistencyException> Error (1002) creating CGSWindow
Program received signal SIGTRAP, Trace/breakpoint trap.
0x9282a45f in _NSRaiseError ()
(gdb) bt
#0 0x9282a45f in _NSRaiseError ()
#1 0x92851247 in +[NSException raise:format:] ()
#2 0x932d82ce in _NXCreateWindow ()
#3 0x932d80ba in CreateWindowNamed ()
#4 0x932d7d0f in NewCacheWindowInfo ()
#5 0x932d7867 in _NXAllocateImageCache ()
#6 0x932d6faa in -[NSCachedImageRep
_initWithSize:depth:separate:alpha:allowDeep:] ()
#7 0x932d6e46 in -[NSCachedImageRep initWithSize:depth:separate:alpha:] ()
#8 0x932d6d45 in -[NSImage lockFocus] ()
#9 0x001b4c88 in NSIMAGE__LOCKFOCUS (this=0x186a9c0) at NSImage.inc:618
#10 0x001935c4 in TCARBONWSCUSTOMTRAYICON__SHOW (ATRAYICON=0x1860380,
pvmt=0x18a0930) at carbontrayicon.inc:69
#11 0x00109230 in TCUSTOMTRAYICON__SHOW (this=0x1860380) at
customtrayicon.inc:112
#12 0x0010925c in TCUSTOMTRAYICON__SETVISIBLE (VALUE=true,
this=0x1860380) at customtrayicon.inc:123
#13 0x00028c11 in TFRMTRAYTEST__BTNSHOWCLICK (SENDER=0x1811a20,
this=0x18115c0) at frmtest.pas:90
#14 0x000eab56 in TCONTROL__CLICK (this=0x1811a20) at control.inc:2094
#15 0x000fd5af in TBUTTONCONTROL__CLICK (this=0x1811a20) at buttoncontrol.inc:57
#16 0x000fdc95 in TCUSTOMBUTTON__CLICK (this=0x1811a20) at buttons.inc:185
#17 0x000fe131 in TBUTTON__CLICK (this=0x1811a20) at buttons.inc:326
#18 0x000fde4a in TCUSTOMBUTTON__WMDEFAULTCLICKED (MESSAGE={MSG =
66567, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0,
LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0},
this=0x1811a20) at buttons.inc:240
#19 0x0000da99 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#20 0x000e104f in TWINCONTROL__WNDPROC (MESSAGE={MSG = 66567, WPARAM =
0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0,
LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=0x1811a20) at
wincontrol.inc:4715
#21 0x00180f25 in DELIVERMESSAGE (TARGET=0x1811a20, AMESSAGE=void) at
lclmessageglue.pas:103
#22 0x00180fec in SENDSIMPLEMESSAGE (TARGET=0x1811a20, MSG=66567) at
lclmessageglue.pas:129
#23 0x001815c6 in LCLSENDCLICKEDMSG (TARGET=0x1811a20) at lclmessageglue.pas:525
#24 0x001a1678 in TCARBONCUSTOMBUTTON__HIT (ACONTROLPART=10,
this=0x186a7a0) at carbonbuttons.pp:326
#25 0x00196d18 in CARBONCONTROL_HIT (ANEXTHANDLER=0xbfffe2c0,
AEVENT=0x1b3ca60, AWIDGET=0x186a7a0) at carbonprivatecontrol.inc:46
#26 0x92dee4d7 in DispatchEventToHandlers ()
#27 0x92dedb7c in SendEventToEventTargetInternal ()
#28 0x92df4f7c in SendEventToEventTarget ()
#29 0x92ea86a5 in SendControlHit ()
#30 0x92ea8596 in HIView::NotifyControlHit ()
#31 0x92eb1e38 in HIView::ClickInternal ()
#32 0x92e8d025 in HIView::ClickSelf ()
#33 0x92e12612 in HIView::EventHandler ()
#34 0x92dee4d7 in DispatchEventToHandlers ()
#35 0x92dedb7c in SendEventToEventTargetInternal ()
#36 0x92df4f7c in SendEventToEventTarget ()
#37 0x92e8cd4f in HIView::Click ()
#38 0x92e8cb8b in HandleClickAsHIView ()
#39 0x92e8c531 in HandleWindowClick ()
#40 0x92e8bffe in HandleMouseEvent ()
#41 0x92e34468 in StandardWindowEventHandler ()
#42 0x92dee4d7 in DispatchEventToHandlers ()
#43 0x92dedb7c in SendEventToEventTargetInternal ()
#44 0x92df4f7c in SendEventToEventTarget ()
#45 0x92df540f in ToolboxEventDispatcherHandler ()
#46 0x92dee88e in DispatchEventToHandlers ()
#47 0x92dedb7c in SendEventToEventTargetInternal ()
#48 0x92df4f7c in SendEventToEventTarget ()
#49 0x00172e53 in TCARBONWIDGETSET__APPPROCESSMESSAGES
(this=0x1898140) at carbonobject.inc:492
#50 0x00024f79 in TAPPLICATION__HANDLEMESSAGE (this=0x18b0020) at
application.inc:975
#51 0x000252e1 in TAPPLICATION__RUNLOOP (this=0x18b0020) at application.inc:1086
#52 0x001722aa in EVENTLOOPEVENTHANDLER (INHANDLERCALLREF=0xbffff550,
INEVENT=0x1b0dce0, INUSERDATA=0x0) at carbonobject.inc:128
#53 0x92dee4d7 in DispatchEventToHandlers ()
#54 0x92dedb7c in SendEventToEventTargetInternal ()
#55 0x92deda41 in SendEventToEventTargetWithOptions ()
#56 0x92df50e3 in ToolboxEventDispatcherHandler ()
#57 0x92dee88e in DispatchEventToHandlers ()
#58 0x92dedb7c in SendEventToEventTargetInternal ()
#59 0x92df4f7c in SendEventToEventTarget ()
#60 0x92e38eb3 in ToolboxEventDispatcher ()
#61 0x92e378cb in RunApplicationEventLoop ()
#62 0x00172c92 in TCARBONWIDGETSET__APPRUN (ALOOP=0x252a0
<TAPPLICATION__RUNLOOP>, this=0x1898140) at carbonobject.inc:435
#63 0x0002529a in TAPPLICATION__RUN (this=0x18b0020) at application.inc:1073
#64 0x0000251c in PASCALMAIN () at wndtray.dpr:39
#65 0x00018810 in SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR ()
#66 0x000024c2 in _start ()
#67 0x000023e9 in start ()
--
Felipe Monteiro de Carvalho
_______________________________________________
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