This content has been marked as final. Show 4 replies
You need to tell people what you do in your program to give people a hint to help you.
a simple example. in the main page i load the extjs sources and create a login mask. if the application is fully loaded i start the TaskManger from Windows and watch to the memory usage from the programm in the process list and it goes up and up. But i do nothing in the application. The application is fully loaded and i do nothing in the application but the memory usage goes up and up ---- to 230.000 K for example. Than i logged in and load an other simple page with some buttons and so on. The Application will be slower and slower after 230.000 K the application hangs complete and only a close and reopen help.
I have a really simple question:
Does Adobe Air automatically grow up the memory usage at the runtime again and again or is it a problem in my programming way.
I hope someone understand my problem.
if i minimize the application to the system bar the memory usage is going down to a normal status. than i open the application again from the system bar and after a few seconds the memory usage is going again up and up
so now i have one solution. If anybody know something about the extjs framework it would be helpfull for you
Don´t use the attribute "monitorValid = true"
This option will grow up the memroy usage of the air app every time without an interaction in the application.
Another point is. In my application with the hang problem i have a tabpanel where i can dynamically add tabs, more and more. Not the memory is the problem. The Problem is if you open and close tabs to fast and to much (over 15 at one time) the application will be slower and slower and than hang on.
The biggest problem is: I close a Tab. But the air application does not release some memory. No, the close event grow up the memory. Thats a big problem.
I found an very interesting page with a nice .ppt presantation how the flash memory management work.
It is possible to release some memory. Unused variable have set to null and an air.System.gc(); will remove the trash. trash = a variable who is null.
I actually test this thing to release some memory if a tab is closed.
If i test it successfully i will post it.
Does anybody has another idea to this problem.
PS: Is the way with air.System.gc(); the right way to remove some trash variables and is it right to set unused vars to null to get them free?
Sorry for my english. I´m german.