First off, thank you Cliff for PureMVC and Pipes, I think it's fantastic.
I am doing a module based app written in AIR and Flash/AS3, using the Multicore PureMVC and Pipes. There is a shell which loads and unloads modules. Only one module is loaded at a time, designed to simulate navigating from one module to another.
My question regards the unloading of modules and memory. As I'm running the "finished" AIR app, I've got the Activity Monitor open. I load and unload modules, and watch the memory usage increase until it reaches a plateau. The more (individual) modules I load and unload, the higher the memory plateau reaches.
Each module in itself is properly cleaned up after unloading - I have tested this by repeat loading / unloading the same module, with no memory increase. What seems to happen is that each module I load is kept in memory, seemingly out of my control.
What I had wanted to do was free the memory of all but the shell & loaded module. As you can imagine, if each module has a memory overhead of 20-30MB (Activity Monitor / "Real Memory"), there only need be a few modules loaded and unloaded before the memory usage becomes an issue.
Is there a solution for this? Am I missing something?
Thank you kindly for any feedback,
Dan