Hello Yordan,

Make sure that you are not constantly importing something or creating
classes that could be contributing to the memory leak. Also try the
API by itself (without your code) and if you're not experiencing any
kind of memory leak you can safely assume that it is something you're
doing and not the API. However all that said I will talk about the
flash garbage collector briefly.

The garbage collector works by cleaning up anything that doesn't have
any references to it, so if you have a class in an array and you can
reference that array, that class will never be cleaned up. Also if
you, and this very important, are adding things to the stage this
counts as a reference, so you need to make sure all display objects
are cleaned up. Lastly, short of some hacks, the garbage collector
will appear some what magical in when it chooses to clean things up,
it is also affected by how much memory you actually have in your
system.

Hope this helps, Good Luck

Jonathan
Scribblemaps.com

On Jan 5, 7:05 am, Yordan Yanakiev <[email protected]> wrote:
> hello
> I am using google maps trought flash , inside one delphi project.
> Flash object is imported as a activex object;
> when i navigate on the map for a short period on the map, the memory
> allocated from the application grow from 11 mb to 300-400 mb.
> If i just minimize the application - the memory is freed.
> Can it be forced to free this memory, or just not allocate it without
> freeing unused ?
> Please, please, please - help me.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.


Reply via email to