Please, help me because I am loosing my mind! I am told I have a memory leak leading to a Fatal Error in Flash. I try now to localize this by removing, one by one, the objects of my scene. I delete them in the Hierarchy menu and save it as a new scene. I then compile it as Flash and … the objects are still there! I even tried it as Unity Web Player and they are still there! They are gone in the Editor, but still there once compiled.
… did I miss something?
2 Answers
2
well anything in the Resources folder is compiled into the project.
I mean if it’s in your project folder it’s part of the compilation
you need to go into windows explorer actually and create a new temporary folder higher up so it’s outside of the unity project folder all together then move assets into that slowly.
Sorry everyone! I found my mistake: I deleted objects, etc. then saved the scene under another name. Then I used “Build and Run” to test it as a Flash file … but when you do that, you still have the previous scene as the selected one to build! And that is why I saw two different things: what the Editor shows and what the Flash build shows!
A silly error but … I knew something was wrong and it must be my error! 
Cheers,
Michel
what language are you writing in? this is VERY bizarre, as I understand it both C# and javascript are garbage collection languages. That makes a memory leak all but impossible.
– sparkzbarcaI write JavaScript but ... the the memory leak, I can try to debug. What I don't understand is, when I delete objects from the Hierarchy menu (but not from the Project one) then run the Editor, those objects are gone. But when I compile the scene as a Flash or Unity Web Player, ... they are still there! It makes debugging by elimination impossible! I don't understand!
– Michel_VerheugheDid you save the scene after removing them all? As a side note, it is not Javascript or C# which use garbage collection, it is the .Net framework. C# or Js are just languages using the whole runtime thing from .NET. But this is all secondary:).
– fafase