View Single Post
  #1 (permalink)  
Old 02-09-2008, 04:39 PM
RandomCoder's Avatar
RandomCoder RandomCoder is offline
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 621
Awards Showcase
Beta Tester 
Total Awards: 1
Question Performance vs Memory

I'm well under way with my SMS application now, but as I add more functions it dawned on me that maybe my approach is wrong.

Basically I'm using one Form and several panels.
All is working well so far, but at present I just set the visibility of the controls as required (Erels runtime example has been a tremendous help... http://www.basic4ppc.com/forum/tutorials/907-runtime-controls-manipulation.html).

So far the application is fast and works exactly as I intended.
But, and here is the question, should I really be disposing the controls instead of hiding them?

I ask this because the application will be running in the background the whole time my Device is switched on and so I want it to hog as little of the resources as possible.
Maybe I'm misgiven in my assumption that more controls (even if hidden) means more memory, and I'd be grateful of some advice on this matter.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote