avatar loading and ApplicationDomain
Posted: 18 May 2009, 14:10
Hi,
is it normal that I can't use any external resource holding a valid avatar that is loaded with an application domain different with the current one?
I'm forced to load the avatar library using this code:
All the other combinations generate an exception:
TypeError: Error #2007: Il valore del parametro child deve essere diverso da null.
at flash.display::DisplayObjectContainer/addChild()
at com.smartfoxserver.openspace.avatar::Avatar()
at com.smartfoxserver.openspace.avatar::AvatarsManager/createAvatar()
Now, what bother me is the massive memory leak I have on openspace project.
I can't find any way to let os release the data it allocates, not even using os.clear and all the other expedients I'm aware of.
Can you give me some hints?
is it normal that I can't use any external resource holding a valid avatar that is loaded with an application domain different with the current one?
I'm forced to load the avatar library using this code:
Code: Select all
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
_loader.load(request, loaderContext);TypeError: Error #2007: Il valore del parametro child deve essere diverso da null.
at flash.display::DisplayObjectContainer/addChild()
at com.smartfoxserver.openspace.avatar::Avatar()
at com.smartfoxserver.openspace.avatar::AvatarsManager/createAvatar()
Now, what bother me is the massive memory leak I have on openspace project.
I can't find any way to let os release the data it allocates, not even using os.clear and all the other expedients I'm aware of.
Can you give me some hints?