Available program memory

  • Thread starter Thread starter c_xyTopa
  • Start date Start date
C

c_xyTopa

Hi all,

how can I get the actual program memory and if it is low restart the device
and the application?
May be OpenNetCF has any events, fired on low memory?

Thank you in advance
 
how can I get the actual program memory and if it is low restart the device
and the application?
May be OpenNetCF has any events, fired on low memory?

I think you can use

GC.GetTotalMemory(false)
 
The GlobalMemoryStatus() fills the MEMORY_STATUS struct.
Is the dwAvailPhys field the program memory shown in the settings panel?

What is the best way to restart the device (WM5) and to start the
application?
 

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

Back
Top