Hey guys,
Is there a method to check runtime memory usage and possibly get the total memory of the device through micro framework? With the regular .Net Framework you have to do it through a process object but this doesn't apply to .Net Microframework.
I've had a skim through all the namespaces for 4.2 and can't find anything relevant.
Runtime Memory Usage
Started by
Nobby
, Oct 10 2012 11:45 PM
2 replies to this topic
#1
Posted 10 October 2012 - 11:45 PM
#2
Posted 11 October 2012 - 01:06 AM
Hi Nobby,
Try:
int freemem = Microsoft.SPOT.Debug.GC(...);
You can optionally pass in true, forcing a garbage collection, giving you the full amount of memory available.
Chris
#3
Posted 11 October 2012 - 04:32 AM
Hi Nobby,
Try:
int freemem = Microsoft.SPOT.Debug.GC(...);
You can optionally pass in true, forcing a garbage collection, giving you the full amount of memory available.
Chris
That worked a treat, thanks Chris )
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users