Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2006
    Posts
    95

    How can I get the total memory size?

    Hi,
    I'm using Symbian 9.
    I need to find out the couses for memory leaks.
    How can I find the device's total memory?
    Thanks,
    Eyal.

  2. #2
    Registered User
    Join Date
    Oct 2005
    Posts
    47

    Re: How can I get the total memory size?

    Hello

    TInt64 gfxGetMemoryInfo()
    {
    RFs FsSession;
    TInt64 nFreeSpace;
    if(KErrNone == FsSession.Connect())
    {
    TVolumeInfo aDriveVolInfo;
    if(KErrNone == FsSession.Volume(aDriveVolInfo, EDriveC ))
    {
    nFreeSpace = aDriveVolInfo.iFree;// gives the free space
    }
    }
    FsSession.Close();
    return nFreeSpace;
    }

    You can change parameters of Volume() function

    Thanks & Regards
    Niilesh

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    166

    Re: How can I get the total memory size?

    i know this thread is already old but somehow if i question the total ram size (drive D) of S^3 device i get only the amount i can store there myself (eg as a filesystem) not the total ram that the system also has used -.-

    any idea how to get total size ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,809

    Re: How can I get the total memory size?

    While the RAM drive really uses the RAM, for this purpose you may find HAL::Get with EMemoryRAM more useful. There is also an EMemoryRAMFree.

  5. #5
    Registered User
    Join Date
    Apr 2009
    Posts
    166

    Re: How can I get the total memory size?

    thx so much dude !

Similar Threads

  1. How can I get the total memory size?
    By eyalmnm in forum Mobile Java General
    Replies: 1
    Last Post: 2007-01-11, 16:28
  2. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  3. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  4. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 18:45
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×