Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Managing Resources

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2010, 11:33 AM
Basic4ppc Veteran
 
Join Date: Apr 2009
Posts: 406
Default Managing Resources

Hi,

When using multiple forms in a project is it more efficient use of memory/resources to define an instance of an object once and then re-use it in other forms or does it not make any difference to the size or resources the program uses.

For example is it better to code

Reader.New1
in it's own form

or

Form1.Reader.New1

Thanks

Joe
Reply With Quote
  #2 (permalink)  
Old 03-11-2010, 11:49 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I'm not really sure what you are asking. Do you mean module rather than form? Every object that you New takes up memory regardless whether it is local or in another module. The fewer objects you have Newed (and not Disposed) the less memory you are using.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 03-11-2010, 11:55 AM
Basic4ppc Veteran
 
Join Date: Apr 2009
Posts: 406
Default

Thanks for the reply Andrew.

I have 3 modules each with their own form and i suspected that what you are saying was the case. I will now try to use less


thanks again

Joe
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed Resources Zenerdiode Basic4ppc Wishlist 0 12-28-2009 10:28 PM


All times are GMT. The time now is 01:36 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0