I'm not sure how Away3D works in its internals, as to whether garbage collection should kick in for your references or not.

However, are you saying that you're events are stacking up? If so, you can add a removeEventListener call directly before your addEventListener call. This will make sure to clear out old listeners, just in case.



On Mon, 14 Dec 2009 00:56:47 -0800, Anthony <[email protected]> wrote:

ok this is Od,

I've found that the Event stays alive if I add a Trace
(theParent....... children[0]); in onEnterFrame even....
It's tracing all the x y z's of the landscape .. Which is a pain in
the ass and the ram has gone from 19mb to 55-60mb... Which I don't
like as well..

But on a good note it's keeping the event alive.

So I'm not sure. but if this was happening in C# I would put my money
on garbage collection.. the Mesh looses all reference to anything
else, so the garbage collection comes along and removes it from
memory. Destroying the event as well.  But on the other hand. The Mesh
is still actively displaying on the screen. So you would think that it
would disappear as well...

It's ok if you were playing on a webpage, because the trace would
never show I suppose...

You got any Ideas on corrected this one? Cause I know I'm running out
of Ideas.. :/

Reply via email to