Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

Memory problems with Compact Framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
simone.51@gmail.com - 21 Aug 2007 15:33 GMT
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.
<ctacke/> - 21 Aug 2007 16:13 GMT
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.

Signature

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

> Hello!
>
[quoted text clipped - 20 lines]
> Best regards.
> Eric.
Eric - 22 Aug 2007 08:56 GMT
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

> 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
[quoted text clipped - 35 lines]
> > Best regards.
> > Eric.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.