DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 21 Aug 2007 07:33:03 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    unknown
          2    ctacke/ ctacke[at]opennetcf[dot]com
          3    Eric


Memory problems with Compact Framework   
Hello!

I'm working on an application that using a lot of memory on PocketPc.
It seems that it almost uses the 32Mb of available memory.

I tried to trace the behavior of physical memory and virtual memory
using MemoryManagement.AvailablePhysicalMemory and
MemoryManagement.AvailableVirtualMemory.

At startup :
AvailablePhysicalMemory  : 33 076 Kb
AvailableVirtualMemory : 1 728 Kb

I use the application, and as I go along, these values decrease.
Moreover, when AvailableVirtualMemory is close to 0 Kb it increases up
to 512 Kb and decreases all the time and it produce importants lags.

How works these two kind of memory on CompactFramework?
Did you encounter same problem?

Thanks you.

Best regards.
Eric.
Date:Tue, 21 Aug 2007 07:33:03 -0700   Author:  

Re: Memory problems with Compact Framework   
The "lag" you see is very likely garbage collection being forced by an OOM 
internally.  The fact you have nearly no virtual memory is going to be a 
major problem for performance.  I'd consider reworking the apps in whatever 
way you can to release some of that.


-- 

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


 wrote in message 
news:1187706783.981769.135740@k79g2000hse.googlegroups.com...

> Hello!
>
> I'm working on an application that using a lot of memory on PocketPc.
> It seems that it almost uses the 32Mb of available memory.
>
> I tried to trace the behavior of physical memory and virtual memory
> using MemoryManagement.AvailablePhysicalMemory and
> MemoryManagement.AvailableVirtualMemory.
>
> At startup :
> AvailablePhysicalMemory  : 33 076 Kb
> AvailableVirtualMemory : 1 728 Kb
>
> I use the application, and as I go along, these values decrease.
> Moreover, when AvailableVirtualMemory is close to 0 Kb it increases up
> to 512 Kb and decreases all the time and it produce importants lags.
>
> How works these two kind of memory on CompactFramework?
> Did you encounter same problem?
>
> Thanks you.
>
> Best regards.
> Eric.
> 
Date:Tue, 21 Aug 2007 10:13:47 -0500   Author:  

Re: Memory problems with Compact Framework   
Thanks for your answer!
We actually use OpenNetCF :)

We already have problem for performance!
So, I still have some questions on the use of these two kind of memory
(virtual and physical)
I use the GlobalMemoryStatus function ( DllImport("coredll.dll") ). Is
the AvailableVirtual corresponds to the available memory which would
be used by the application process?
What's about Available Physical?

Thanks.

Best regards
Eric

On 21 août, 17:13, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:

> The "lag" you see is very likely garbage collection being forced by an OOM
> internally.  The fact you have nearly no virtual memory is going to be a
> major problem for performance.  I'd consider reworking the apps in whatever
> way you can to release some of that.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded Worldwww.OpenNETCF.com
>
>  wrote in message
>
> news:1187706783.981769.135740@k79g2000hse.googlegroups.com...
>
> > Hello!
>
> > I'm working on an application that using a lot of memory on PocketPc.
> > It seems that it almost uses the 32Mb of available memory.
>
> > I tried to trace the behavior of physical memory and virtual memory
> > using MemoryManagement.AvailablePhysicalMemory and
> > MemoryManagement.AvailableVirtualMemory.
>
> > At startup :
> > AvailablePhysicalMemory  : 33 076 Kb
> > AvailableVirtualMemory : 1 728 Kb
>
> > I use the application, and as I go along, these values decrease.
> > Moreover, when AvailableVirtualMemory is close to 0 Kb it increases up
> > to 512 Kb and decreases all the time and it produce importants lags.
>
> > How works these two kind of memory on CompactFramework?
> > Did you encounter same problem?
>
> > Thanks you.
>
> > Best regards.
> > Eric.
Date:Wed, 22 Aug 2007 07:56:39 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us