List Info

Thread: RE : Re: Strange Memory Leak




RE : Re: Strange Memory Leak
user name
2007-03-23 12:57:36
garbage collector will destroy it for you later:

test this:

global test

on exitFrame me
  i=0
  repeat while i<10000
    i=i+1
    
    test = vector(0,0,0)
    go to the frame
    
  end repeat
end




Alexx <earthwormjimfree.fr> a écrit : Danny Kodicek a
écrit :
>  Does it make any difference if the global is called
something other than
> test? (I know it's silly but...)
>   
hehe, nice try, but no... in my main movie, the bug comes
from another 
global variable
after a long search, I think I have found the scripts
causing this 
problem, but I still don't understand why...

here is a simplified movie with the bug : http://www.alesk.fr
/leak_test.zip

run it and watch the memory inspector, the memory used by
program should 
grow slowly

then, remove all the scripts from the dirjs castlib, close
director, 
then reopen the movie -> no more bug
so, one of these scripts is the source of the problem, but I
don't see 
wich one, since none of them is called from anywhere

maybe it's a simple thing... but I can't figure wich one :/

thanks for help

Alexx

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


 		
---------------------------------
 Découvrez une nouvelle façon d'obtenir des réponses à
toutes vos questions ! Profitez des connaissances, des
opinions et des expériences des internautes sur Yahoo!
Questions/Réponses.
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l

[1]

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