How to get the amount of free memory in series60?

Login to reply to this topic.
Fri, 2004-10-08 10:21
Joined: 2003-11-24
Forum posts: 2
I can't find any API to do that... Cry
Can anyone help me?

Fri, 2004-10-08 10:48
Joined: 2004-06-06
Forum posts: 205
How to get the amount of free memory in series60?
look for
User::AllocSize
User::Available
also from HAL
EMemoryRAM, EMemoryRAMFree

Best regards,
Michal Laskowski

Fri, 2004-10-08 11:13
Joined: 2003-11-24
Forum posts: 2
How to get the amount of free memory in series60?
Thank u very much  Cheezy
I really appreciate your help  Cheezy
Sun, 2005-03-20 17:02
Joined: 2005-01-31
Forum posts: 33
How to get the amount of free memory in series60?
Hi,

May I ask how you used that?
I read the docs and it seems that heaps live in chunks which can grow and shrink dynamically. Does use::Available() consider this? Will it return the true free memory available for my app.

What I'm doing is creating a cache for some data. I need to know how much memory to allocate for the cache according to the available free memory for my app.

Thanx
Yaron Tadmor
Sat, 2005-04-09 13:39
Joined: 2004-12-23
Forum posts: 239
How to get the amount of free memory in series60?
hi
How could I know the total memory of flash and available memory of flash.
I have done exhaustive search for e32hal.h and hal.h but finding nothing,
Can anyone help me.
Thanks

---------------
Bhatt Kavita

Sat, 2005-04-09 14:31
Joined: 2004-06-06
Forum posts: 205
How to get the amount of free memory in series60?
Quote from: mesweetie
hi
How could I know the total memory of flash and available memory of flash.
I have done exhaustive search for e32hal.h and hal.h but finding nothing,
Can anyone help me.
Thanks

if your talking bout storage memory (MMC or buildin flash) check RFs::Drive

Best regards,
Michal Laskowski

Sat, 2005-04-09 14:39
Joined: 2004-12-03
Forum posts: 192
How to get the amount of free memory in series60?
RFs::Volume(TVolumeInfo& aVol,TInt aDrive=KDefaultDrive)

TVolumeInfo has a field `TInt64 iFree` - the amount of free space on the disk in bytes
Sat, 2005-04-09 15:24
Joined: 2004-06-06
Forum posts: 205
How to get the amount of free memory in series60?
Quote from: Core[RUS]
RFs::Volume(TVolumeInfo& aVol,TInt aDrive=KDefaultDrive)

TVolumeInfo has a field `TInt64 iFree` - the amount of free space on the disk in bytes

ow yes it was RFs::Volume i mistaken functions.

Best regards,
Michal Laskowski

  • Login to reply to this topic.