List Info

Thread: Strange Memory Leak




Strange Memory Leak
country flaguser name
France
2007-03-23 06:04:10
Hi,

I have a "big" problem : put this piece of code in
a frame script and 
run the movie

global test

on enterframe me
  test = vector(0,0,0)
end

on exitFrame me
  go to the frame
end

watch the memory inspector : the ram used by the program
will grow up to 
4k / 6k every second
why ??? how to prevent this ?

thanks

Alexx
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l

Re: Strange Memory Leak
country flaguser name
Sweden
2007-03-23 06:22:11
Wow!
is it only when vector(0,0,0) is in the enterframe handler?
try prepareFrame instead and see if that works

Alexx skrev:
> Hi,
>
> I have a "big" problem : put this piece of
code in a frame script and 
> run the movie
>
> global test
>
> on enterframe me
>  test = vector(0,0,0)
> end
>
> on exitFrame me
>  go to the frame
> end
>
> watch the memory inspector : the ram used by the
program will grow up 
> to 4k / 6k every second
> why ??? how to prevent this ?
>
> thanks
>
> Alexx
> _______________________________________________
> dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
> http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
>
>

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l

RE: Strange Memory Leak
country flaguser name
United States
2007-03-23 06:31:46
Well, had you tried to create the vector entity 1 frame
back? and in case
you need to put it in 0

on enterframe me
test.x = 0
test.y = 0
test.z = 0
end

Maybe the garbage collector drives nuts if you create an
instance of the
vector several times in one second.


HTH

L.

-----Mensaje original-----
De: dirgames-l-bouncesnuttybar.drama.uga.edu
[mailto:dirgames-l-bouncesnuttybar.drama.uga.edu]En
nombre de Alexx
Enviado el: Friday, March 23, 2007 8:04 AM
Para: Director - Shockwave - and Flash Game Production
Asunto: [dirGames-L] Strange Memory Leak


Hi,

I have a "big" problem : put this piece of code in
a frame script and
run the movie

global test

on enterframe me
  test = vector(0,0,0)
end

on exitFrame me
  go to the frame
end

watch the memory inspector : the ram used by the program
will grow up to
4k / 6k every second
why ??? how to prevent this ?

thanks

Alexx
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )