Hi,
Is there any way for a symbian program to find out how much free memory is available on the phone when it is run?
The User::Available() function seems to only give information about the current heap which can expand. What I need is a way of finding out how much global memory is available.
Hope you can help! 😃
Gordon.
Gordon,
i think you should be able to check the amount of memory by
checking the amount of free space on the C: drive. Either RFs.Drive();
or RFs.Volume(); can be used. Check the documentation for more details and the exact usage.
Source: Symbian Development Forum
MaleBuffy: I think you have got it wrong there😊
Nokia is very confusing about it, but disk space != memory. They use different (much slower flash mem which remembers data without power) for disk space and fast (in 7650 sdram) memory where it allocates space for program data.
This way even when your free disk space is close to 0kb you can still run your apps well becaue 4mb of sdram memory is still free.
It would be slow to allocate/use flash memory for programs(esp on 9210 phones which have damn slow flash mem)
Bitween...Dont forget the idea of a JIZZO vs Muffy Game
*ROTFL*
PS.I don't know how to check actual free memory for program use either. You could try to allocate 10kb blocks of memory and see how many can fit into it before it starts to give errors and free all those 10kb blocks afterwards... not really a nice way, but should work fine😊
This is just a guess -
Drive D on Seleq is RAM which is your standard memory - that's why you lose anything you save on there when you turn off the phone.
Can you use the functions Male Buffy mentions on D drive instead to find out free memory?
Yes Mirek you are right! when I replied to the question I wanst sure of what memory type he was refering! This is an interesting topi9c I will get into it to find a solution 😊
male:if wahchild is correct, your method can be used but you must specify drive d/whatever to get correct values
But here you might fall into problem if different phones/mmc cards have got different drive letters and it all mixes... so you can't be sure which drive is ram
[quote="MirekCz"]MaleBuffy: I think you have got it wrong there😊
Nokia is very confusing about it, but disk space != memory. They use different (much slower flash mem which remembers data without power) for disk space and fast (in 7650 sdram) memory where it allocates space for program data.
This way even when your free disk space is close to 0kb you can still run your apps well becaue 4mb of sdram memory is still free.
It would be slow to allocate/use flash memory for programs(esp on 9210 phones which have damn slow flash mem)
Bitween...Dont forget the idea of a JIZZO vs Muffy Game
*ROTFL*
PS.I don't know how to check actual free memory for program use either. You could try to allocate 10kb blocks of memory and see how many can fit into it before it starts to give errors and free all those 10kb blocks afterwards... not really a nice way, but should work fine😊[/quote]
HAH! Told you all before 😛 But since I didn't have a 7650 I could really prove it 😛
(check the posts about Doom)
Quote: Bitween...Dont forget the idea of a JIZZO vs Muffy Game
*ROTFL*
Look Jizzo, everybody is laughing at as! 😃 They just cant take as seriously :roll: I believe this would be a big hit! :turn-l:
Dazler:btw, the same goes to 92xx and probably most other phones...
Hi,
Thanks for you quick response to my question. I asked it because I am involved in developing a video player for the 7650 and I have noticed an interesting effect. When the phone is running out of space on the C: drive, the performance of the player seems to go down for the same clip. However, if the RAM is separate from the storage then a reduction in the available space on C: should not do this. I notice that SeleQ reports the total capacity of D: as only 454.144 kb on my phone. Could the phone be doing some kind of virtual memory paging to the flash?
Thanks,
Gordon.
I don't know for sure... but if you create a bitmap, everytime you lose focus and gain it again, bitmap pointer points to a different place in memory. It's well possible that it stores this bitmap in flash mem when you go out of focus...
[quote="MirekCz"]Dazler:btw, the same goes to 92xx and probably most other phones...[/quote]
I know that's why I posted i once on the 7650 forum when they were trying to delete all there fiels to get Doom to run 😊