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: problem releasing QCRenderer



I'm doing something like this for live resize operations, but there is sometimes a need to change the base resolution that QC is actually rendering to... I don't think QCRenderer picks up on the viewport change.
Also my app needs to be able to capture displays, which will necessitate reloading the renderers for a full-screen context (and freeing the old ones first to prevent resource conflict).


		-DT

I also posted to the cocoa-dev list, and I got this reply --

--Are you using an NSMutableArray to add QCRenderers?

--I had quite the same problem when I've upgraded the system to 10.4.7.
--I changed the NSMutableArray with a NSArray and now it works.

--regards,

--Francesca


weird, huh? Does anybody know why this is?

On Jul 25, 2006, at 12:02 PM, Eric Redlinger wrote:



Hey Dan,

have a look at the source for Quartz Composer Performer, which also implements resizing the output resolution. You don't need to release the renderers, just tell them to stop rendering while you resize. Since this all happens very quickly you almost don't even notice that anything ever stops...

http://share.dj/share/event_info.php?eventID=345

-Eric

On Jul 25, 2006, at 12:14 PM, Dan Treiman wrote:

I have a cocoa app that needs to be able to render compositions at different user-selectable resolutions.
I noticed that the QCTV sample at
http://developer.apple.com/samplecode/QuartzComposer_WWDC_QCTV
implements this functionality by releasing its QCRenderers, resizing the view/gl context, and then loading new QCRenderers.
However, whenever I try this (even in QCTV) I get an EXC_BAD_ACCESS. A backtrace shows


#0  0xfffeff20 in objc_msgSend_rtp ()
#1  0x987e8114 in -[QCPatch(Private) _cleanup] ()
#2  0x987e7fa4 in -[QCPatch(Private) _cleanup] ()
#3  0x987e7eac in -[QCPatch(Runtime) stopRendering] ()
#4  0x9881ec14 in -[QCRenderer dealloc] ()

I'm running 10.4.7, XCode 2.3

Does anybody have any insight into this? Did this perhaps work in a previous version?

thanks,
-Dan Treiman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/eric% 40ecumedesjours.com


This email sent to email@hidden



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

This email sent to email@hidden
References: 
 >problem releasing QCRenderer (From: Dan Treiman <email@hidden>)
 >Re: problem releasing QCRenderer (From: Eric Redlinger <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.