Is it reasonable for a .net CF 2.0 application to take up about 10 MB of memory?

O

Optimus

Hi,

I would like to ask if its reasonable for a .net CF 2.0 application
running on
a pocket pc, hp ipaq hx2110 with win mobile 2003 se,
to take up about 10 MB of memory. Every time i opened the form, memory
dropped about 2 MB.


The usage in this app is as follows:


1 Main Windows Form, 10 User Controls loaded into the form (one user
control loaded at a time),
DataSets, Separate Data Access Class DLL and one Common library class.


Btw, I heard that using the dataset could possibly lead to memory
overloading. Is that correct? and how can I work around with this?


Another thing, with using the user control loaded onto the form,
How do I properly release memory used by a user control?


I realize that this is a real tough question to ask as it's hard to
give
an answer without seeing the actual code and what it does


Thanks in advance,
Optimus
 
S

Simon Hart

DataSets are fairly heavy weight, you might consider using custom classes
instead and use the SqlDataReader class in combination with your data access
layer.

With regards to how much memory your app is consuming is difficult to say as
you rightly pointed out. All you can do is adhere to best practices.

Regards
Simon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top