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?
 
Back
Top