(sorry to spam some more)

When I close the simple ".qtz" composition or Quit the Quartz Composer (Version 3.1) application, the "- (void) dealloc" method NEVER gets called, which leaves the hardware unclosed and buffers undisposed of, which is a huge leak IMHO. I have NSLog statements in the :dealloc" methods and then never get called at all. So I need to solve this before I move forward to the next stage.


Also: you'll find that apps that dealloc everything just before closing to be extraordinarily rare; it's a lot of work to tell the kernel to reclaim everything just before the process exits (thus telling the kernel to ... reclaim everything with extreme prejudice). It's no leak. As long as the hardware drivers properly cleanup when the app terminates (which is entirely kernel space, not up to the application), everything's fine. Otherwise, there'd be severe problems with vram usage whenever QC crashed, as it gobbles up tons of memory, and a crash wouldn't let it give all that memory back :) Pre-OS X stuff might have struggled with that kind of thing, but I don't know as that predates my dev experience on the platform. [it takes serious guts to deal with non-protected-memory platforms like Mac OS Pre-X, and took even more guts to stick with Mac OS long after windows and linux offered protected memory ubiquitously -- I wasn't that gutsy ;)]

You can make a case for QC leaking when compositions close (I've been planning to file a bug on that for a while, but haven't gotten around to inspecting it more closely to provide meaningful data in the report), but that's about the extent of it.

(I find that _sometimes_ dealloc is called if you open an existing composition, and don't edit _anything_ (as in, don't move any patches, don't adjust any values, don't move any noodles, etc). It's still quite unreliable, and underscores the importance of not depending on - dealloc in a qc plugin under normal circumstances).

--
[ christopher wright ]
[email protected]
http://kineme.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to