This page was last modified 16:38, 23 June 2008.
How to discover the amount of free RAM
From Forum Nokia Wiki
The amount of free RAM can be logged by putting the following code somewhere that is frequently called:
#include <hal.h>
...
TInt freeRam = 0;
HAL::Get( HAL::EMemoryRAMFree, freeRam );
// If you want to trace RAM usage
#ifdef _DEBUG
RDebug::Print(_L("MyDLL:FreeRam now = %d"), freeRam );
#endif
And the .mmp file may also need this adding:
LIBRARY hal.lib
Use User::Available() for getting the total free space currently available on the current thread's heap and the space available in the largest free block.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Memory for applications on 9300 | surajit_c | General Discussion | 2 | 2006-11-29 21:06 |
| 60 Theme Studio - why doesn't install? | Xarxus | General Symbian C++ | 0 | 2004-06-06 11:02 |
| Bluetooth State Exception: Busy | stevejanko | Mobile Java General | 2 | 2007-12-04 09:05 |
| WiFi Hotspot discovery..is it possible? | zed1 | Symbian Networking & Messaging | 10 | 2006-11-08 06:04 |
| query dialog in thread | dalore | General Symbian C++ | 4 | 2004-08-12 12:42 |
