if its 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
 
R

Rhinoman

Hi Optimus,

I wrote a largish application (13 screens) in .NET CF2.0 with Sql CE
etc - memory usage was so high that it has been rewritten in CF 1.1.

For example, when replication was running, it had < 1 meg free and
often crashed, I could not use transactions as they exhausted all
memory and the more data on device the worse it was - pretty scary.

The devices were all HP 6515 with 64 meg ram, I'm pretty confident that
with 128meg ram .NET 2 would have been quite ok.

cheers and good luck,

Rhinoman
 
G

Guest

And I'm confident you made a mistake. CF 2.0 isn't going to take that much
more than 1.0 (there is no 1.1) and my guess is that 2.0 was eforcing some
behavior that 1.0 doesn't leading you to *think* 1.0 is better, but that it
will crash unpredicatably becasue of it.

And replication is a SQL CE feature and has nothing to do with CF 1.0 or
2.0, so that may not be the best example...

-Chris
 

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