I have had similar problems with one of my (very, very) large applications. We did everything we could to try to get Flash to release the memory. There were two non-code solutions we came up with (neither of which worked for our end product). One was the fact that if you minimize the window Flash will release that memory. The other was a small command line utility that forced it to release the memory (Win only).
We contacted MM and after several phone conference calls and sending them a bunch of source we were informed that the Flash player was not intended to run as an application for long periods of time (our app runs in about 15 minute intervals). Needless to say I wasn't very happy with that comment as they now push it as a RIA Platform. So, if you do find anything out. Please, please share. My app is out in the wild now and although the memory usage doesn't seem to be creating any problems, it is still an issue in my mind. Thanks, Steve On 9/4/05, Nick Griffiths <[EMAIL PROTECTED]> wrote: > I know this should be on one of the as coders forums, but i thought > people here would be more able to answer this one. > > We've stopped developing on the timeline, and our app seems to use huge > amounts of memory when left running for a long time. I thought i'd > narrowed it down to XML parsing (server polling), so I set up a couple > of tests; one which sits on a single frame of a movie clip firing of > server requests in a for loop, the other which fires of requests every > frame. The first test seems to use a huge amount of memory that is > never freed after (50 or so calls worth), while the second cleans up > every call and never goes over about 20mb. > > I set up another test, a sort of mix between the two which did about 50 > requests in a for loop, then moved along about 5 frames and a > key-frame. The swf in this one seemed to garbage collect after the for > loop when leaving the frame which had the code on it? > > So what I'd like to know is, has anyone else had any problems with flash > not garbage collecting as you'd imagine? I've read somewhere that it is > done every minute, but that sounds pretty arbitrary. I'm reasonably > confident I'm not causing the memory leak, but then I don't know enough > about the Flash VM to be certain about that (I once ready a spooky > article about flash scoping, esp nested functions). > > > I await your comments with baited breath :) > Nick > > > > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
