Mailing Lists: Apple Mailing Lists

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

Memory leaks with dashboard widgets




Hello!

I wonder if there any "definitive" answer to the memory leak problems with dashboard widgets? I have built a widget which shows this behaviour, but I notice that even some of the Tiger-supplied widgets like "Weather DashboardClient" seem to suffer from growing resident memory size over time. Does anyone know of problems with the dashboard implementation or is this a case of my own javascript code not behaving correctly?

If it's my own code, I wonder how I might debug this problem. I would imagine the JavaScript implementation to be a reference-counting system with lazy garbage collection. But I don't think I have any circular references in my code.
In which case, is there any way to periodically force garbage collection? Or find out when JavaScript objects are allocated and then free'd?


Any hints as to how one might go about debugging this problem would be appreciated.

Regards, David Thorpe


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

This email sent to 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.