Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreimage error ...



On Mar 13, 2008, at 1:27 AM, Brasseur Valery wrote:

well, I try both ...

* removing [cicontext release] from my code give me :

<quote>
Warning: The printing graphics context is being released by the printing system but is retained by the drawing client. This usually produces damaged PDF documents!
</quote>


and the output PDF is empty !

* the objectalloc give me these stacks event :

Event: (#620685) AllocationEvent
Time Index: 227049487.163018
Category: CIContext
Pointer: 0xee899f0              Size: 16
Thread: 0x6b1b          Extra Data: 0x0
Backtrace:
       NSAllocateObject
       +[NSObject alloc]
       +[CIContext contextWithCGContext:options:]


Well, your creating your CIContext auto-released, which means that it could potentially persist beyond the lifetime of the printing context, which is what seems to be the case from the warning that your getting. You can't just release it then, because its sitting in an autorelease pool to be released later.

I think your best work around will be to render your content to an appropriately sized bitmap context and then draw the resulting image into the printing context.
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >coreimage error ... (From: Brasseur Valery <email@hidden>)
 >Re: coreimage error ... (From: Frank Doepke <email@hidden>)
 >RE: coreimage error ... (From: Brasseur Valery <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.