I am still having problems with the gc (see below), could anyone help me?
Thanks,
Harald
-----Ursprüngliche Nachricht-----
Von: Manish Jethani [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. Mai 2006 17:13
An: Harald Dehn
Betreff: Re: [flexcoders] Flex2B3 - Problems with the garbage collector
Hi Harald,
I'm not aware of any further improvements. Flexcoders is the best
place to ask (as some people from Flash Player team might be hanging
out there).
Manish
On 5/22/06, Harald Dehn <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Hi Manish,
>
>
>
> sorry vor contacting you directly, but I still have problems with the gc as described below. Do you know if there will be any improvements of the gc in the final release of Flex2 and FP9?
>
>
>
> Thanks for your time,
>
> Harald
>
>
>
> ________________________________
>
> Von: Harald Dehn
> Gesendet: Donnerstag, 18. Mai 2006 10:18
> An: '[email protected]'
> Betreff: AW: [flexcoders] Flex2B3 - Problems with the garbage collector
>
>
>
> Hi,
>
>
>
> thanks for your response, but I still have the problem that it takes serveral minutes to free unsused memeory. And If I leave the application alone it never comes back to the memory usage of the beginning (round about 4.5 MB). There seems to be a bug in the gc.
>
>
>
> Harald
>
> ________________________________
>
> Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von Manish Jethani
> Gesendet: Mittwoch, 17. Mai 2006 18:27
> An: [email protected]
> Betreff: Re: [flexcoders] Flex2B3 - Problems with the garbage collector
> Wichtigkeit: Hoch
>
>
>
> On 5/17/06, Harald Dehn <[EMAIL PROTECTED]> wrote:
>
> > I do have some questions about the garbage collector. I have written a small sample which fills a container with thousand buttons (see below). When I start the application it uses round about 4MB of Memory. After adding the buttons, moving around with the mouse and removing all buttons it uses 14MB.
> >
> > The documentation says that the garbage collector should run every 60 seconds. But with my test application the amount of memory always rise for minutes. After round about 10 minutes the used memory decreases to 6.5 MB. Where is my mistake?
>
> I haven't looked, but I don't think we have an API similar to Java's
> System.gc(). i.e. you can't request the VM to run garbage collection
> using code. I'm not aware of any runtime parameters either.
>
> > What about circular references? Could the garbage collector remove the following construct when no other references for the TestParent- and TestChild instances exists?
>
> Yes. The new garbage collector uses a combination of reference
> counting and the "mark and sweep" algorithm [1]. Circular references
> aren't supposed to be a problem anymore.
>
> [1]: http://www.osnews.com/story.php?news_id=6864
>
> > Is there functionality in the Flex similar to the IDispose interface in .NET? The Dispose method of the interface will be called by the .NET framework or could called programmatically, it's the place where a class could free all used resources, eventlistener, etc.
>
> Or finalize() in Java. No, there's not such thing in Flex. Before
> letting an object go, you should call a method on it directly to make
> sure it's cleaned up. For example, before removing a VideoDisplay from
> the display list, you should ensure that stop() and close() are called
> on it (common issue when using a VideoDisplay inside a Repeater).
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> SPONSORED LINKS
>
>
> Web site design development
>
> Computer software development
>
> Software design and development
>
>
> Macromedia flex
>
> Software development best practice
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> Visit your group "flexcoders" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
> ________________________________
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

