Link to home
Start Free TrialLog in
Avatar of monster2
monster2

asked on

form load unload /memory management

I hawe application with many forms which using graphics and large data array
I hawe following question can I load form before i wont to use it and after that to unload it from memory so i can manage my memory resources ?
Form shold be later aviable for load / unload again


I'm not sure how delphi manage memory resources so I'm affraid if i write to many forms with larege memory request's it can slow down my app

Das show/hide relase memory which form use ?

Regards
Avatar of monster2
monster2

ASKER

Is better method to borke programs in separate exe which can call each other ?
If so how can I transfer variables betwean exe files (not using some sort of temp temp files)
Avatar of RBertora
Show hide does not release memory..

You have to use CreateForm, and From1.Free for
propery memory management.

Rob ;-)
ASKER CERTIFIED SOLUTION
Avatar of simonet
simonet
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Of course, you would also add Action := caFree in the OnClose event of the dynamically created form, or call Form2.Release to destroy the form. :-)

Cheers,

Raymond,
Of course, you would also add Action := caFree in the OnClose event of the dynamically created form, or call Form2.Release to destroy the form. :-)

Cheers,

Raymond,
Right!

Monster2, as long as you free the other forms before creating them again, you can create and destroy them as many times as your want.

Alex
If i stuck again with this i know where to cry for help

Thanks people & regards

If i stuck again with this i know where to cry for help

Thanks people & regards

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange