BREW and Symbian | developer.brewmp.com BREW and Symbian | developer.brewmp.com

Developer

BREW and Symbian

Hi all,

Being new to BREW,I am not really clear about the memory structure in BREW.

In the BREW API_REFERENCE I came across ISHELL_GetDeviceInfo() ehich says that it tells about the total amount of memory. But what is this TOTAL MEMORY?

Is it the device memory or the memory allocated to one application?

And same question for IHEAP_GetMemStats() that says it returns the amount of memory in the system that is being used.

Thanx

ISHELL_GetDeviceInfo gives device memory
To get memory allocated to an application use IAppletCtl_GetRunningInfo with AEE_APPITEM_HEAP_USAGE as your nItem
To get total Heap memory use GETRAMFREE
Since this is IHEAP pointer my guess is it will list heap memory being used by the system

ISHELL_GetDeviceInfo gives device memory
To get memory allocated to an application use IAppletCtl_GetRunningInfo with AEE_APPITEM_HEAP_USAGE as your nItem
To get total Heap memory use GETRAMFREE
Since this is IHEAP pointer my guess is it will list heap memory being used by the system

See the thread
http://brewforums.qualcomm.com/showthread.php?t=3979
which explains debug sequence..
U can see the available total Heap size by enabling mem info
ie, run ur app in Emulator/Device
Press this sequence to enable debug mode
###BREWDEBUG#
(ie ###273933284#)
Then enable mem info printing by
###3#
U can see the available heap size at the top-left side of the screen.
I found it very useful, as we can see the usage of mem as and when it happens

See the thread
http://brewforums.qualcomm.com/showthread.php?t=3979
which explains debug sequence..
U can see the available total Heap size by enabling mem info
ie, run ur app in Emulator/Device
Press this sequence to enable debug mode
###BREWDEBUG#
(ie ###273933284#)
Then enable mem info printing by
###3#
U can see the available heap size at the top-left side of the screen.
I found it very useful, as we can see the usage of mem as and when it happens

Would like to read your new article soon, refresh your blog everyday.-------------------------------------------------------------------------------Pearl products

Would like to read your new article soon, refresh your blog everyday.-------------------------------------------------------------------------------Pearl products