Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
steven1152

Leak when unloading loader while loading

Recommended Posts

Hi,

 

There seems to be a memory leak when I call dispose on a FlexContentDisplay when the image is still loading. The leak only happens when the image has not finished loading.

 

Any idea why?

Is there someting in my code that could cause that?

 

Here's some info on the context:

-Imageloaders are all in the same LoaderMax

-autoDispose on the imageLoader is set to false

-it seems to be leaking flash.display::Loader objects

-The FlexContentDisplay is removed from all references in my code after calling the dispose function

 

Any help would be appreciated,

 

Thanks,

Link to comment
Share on other sites

Sorry, we're not aware of any leaks caused by LoaderMax.

In addition to what you are already doing our best advice is to make sure that you remove any eventListeners you may have added. 

 

Our dispose() method calls both unload() and dispose() on the native Loader and there really isn't anything else we can do beyond that.

 

Unfortunately if you google "AS3 Loader memory leak" you have a few hours if not days worth of reading and testing to do :(

 

We haven't touched the LoaderMax source in years. There is very little demand for our AS3 loading tools due to:

  • Adobe abandoning Flex
  • Adobe distancing itself from Flash Pro and especially swf output
  • lack of support for swfs across mobile AND now desktop

We just can't afford to be spending days hunting down Flash Player bugs any more. Wish I had better news for you.

Link to comment
Share on other sites

I'm pretty sure it's just a leak in flash player itself.

I patched it by making sure that loaders are done loading before unloading them.

It's not the best solution because it affects the end user experience but it will have to do for now.

Thank you for your time.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×