Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-02 Thread Roman Blöth
David Rorex schrieb: my_var = null; and delete my_var; should do exactly the same thing...delete doesn't actually delete the object, only the reference to the object. it doesn't get removed from memory until later (when the GC feels like it) Well, we observe different behaviour here: After unlo

Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-02 Thread Roman Blöth
j.c.wichman schrieb: Hi Roman, You describe my_var =null as being useless, but this should be enough for the garbage collector to come along and reclaim an object? With respect to the static issue, what do you mean with 'static instances' ? Could u provide an example of such an object with isn't

Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread ryanm
my_var = null; and delete my_var; should do exactly the same thing...delete doesn't actually delete the object, only the reference to the object. it doesn't get removed from memory until later (when the GC feels like it) Well, technically they do *slightly* different things, but usually with

Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread David Rorex
TECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roman > Blöth > Sent: Wednesday, February 01, 2006 6:09 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] "clearing" variables from memory after use... > > dls schrieb: > > Might be counting ang

RE: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread j.c.wichman
laimed? Thanks, Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Blöth Sent: Wednesday, February 01, 2006 6:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] "clearing" variables from memory after use... dls schrieb: > M

Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread dls
Thanks Roman! I will make it a practice to start dumping the variables after I don't need them! --dan Roman Blöth wrote: dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they

Re: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread Roman Blöth
dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I co

[Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread dls
Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out