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

Re: if its reasonable for a .net CF 2.0 application to take up about 10 MB of memory. by Rhinoman

Rhinoman
Sun Jul 23 20:23:28 CDT 2006

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

Optimus wrote:
> 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


Re: if its reasonable for a .net CF 2.0 application to take up about 10 MB of memory. by ctacke/>

ctacke/>
Tue Jul 25 23:15:36 CDT 2006

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


"Rhinoman" <rimfire@lexicon.net> wrote in message
news:1153704208.725380.316280@p79g2000cwp.googlegroups.com...
> 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
>
> Optimus wrote:
>> 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
>