Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi...

Is there any method in brew by which i can find which allocated memory has not been freed???

Thanks

Priya Prakash

just check your emulator's output screen when u exit the application at the end It will show u the AEEEheapinfo and you will get the information u need,
something like this
Validating Heap...
------ App Heap Info ------
56 - MOVIETICKET #730 WEB (L)
142 - MOVIETICKET #757 WEB (L)
20 - MOVIETICKET #768 SOURCE (L)
424 - MOVIETICKET #755 HTTP (L)
25 - MOVIETICKET #770 HTTP (L)
6 - MOVIETICKET #771 HTTP (L)
12 - MOVIETICKET #772 WEBOPTS (L)
4136 - MOVIETICKET #769 SOURCE (L)
-------------------------
After # is line number..

just check your emulator's output screen when u exit the application at the end It will show u the AEEEheapinfo and you will get the information u need,
something like this
Validating Heap...
------ App Heap Info ------
56 - MOVIETICKET #730 WEB (L)
142 - MOVIETICKET #757 WEB (L)
20 - MOVIETICKET #768 SOURCE (L)
424 - MOVIETICKET #755 HTTP (L)
25 - MOVIETICKET #770 HTTP (L)
6 - MOVIETICKET #771 HTTP (L)
12 - MOVIETICKET #772 WEBOPTS (L)
4136 - MOVIETICKET #769 SOURCE (L)
-------------------------
After # is line number..

ppp_b10 wrote:just check your emulator's output screen when u exit the application at the end It will show u the AEEEheapinfo and you will get the information u need,
something like this
Validating Heap...
------ App Heap Info ------
56 - MOVIETICKET #730 WEB (L)
142 - MOVIETICKET #757 WEB (L)
20 - MOVIETICKET #768 SOURCE (L)
424 - MOVIETICKET #755 HTTP (L)
25 - MOVIETICKET #770 HTTP (L)
6 - MOVIETICKET #771 HTTP (L)
12 - MOVIETICKET #772 WEBOPTS (L)
4136 - MOVIETICKET #769 SOURCE (L)
-------------------------
After # is line number..
But from this how can I know which memory i have to free???

ppp_b10 wrote:just check your emulator's output screen when u exit the application at the end It will show u the AEEEheapinfo and you will get the information u need,
something like this
Validating Heap...
------ App Heap Info ------
56 - MOVIETICKET #730 WEB (L)
142 - MOVIETICKET #757 WEB (L)
20 - MOVIETICKET #768 SOURCE (L)
424 - MOVIETICKET #755 HTTP (L)
25 - MOVIETICKET #770 HTTP (L)
6 - MOVIETICKET #771 HTTP (L)
12 - MOVIETICKET #772 WEBOPTS (L)
4136 - MOVIETICKET #769 SOURCE (L)
-------------------------
After # is line number..
But from this how can I know which memory i have to free???

When you exit the application , put a break point at last line of FreeApp....
chk(watch) your application's pointer pMe, all variables to which you have allocated memory should be NULL, if not then free the memory for that variable which is not NULL . if all the variables are NULL, then second possibility is you are allocating memory twice, and realising it once.

When you exit the application , put a break point at last line of FreeApp....
chk(watch) your application's pointer pMe, all variables to which you have allocated memory should be NULL, if not then free the memory for that variable which is not NULL . if all the variables are NULL, then second possibility is you are allocating memory twice, and realising it once.

priya_du wrote:But from this how can I know which memory i have to free???
I purposefully created some memory leaks in my sample application. One was not freeing one memory and 2 were not releasing 2 interfaces. This is what you will get in logs...See the bold part, it indicates memory leak..
Quote:
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253C940 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253FEF0 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CF80 mybrewapp
*AEEHeap.c:1265 - ------ App Heap Info ------
*AEEHeap.c:1167 - 100 - mybrewapp #1960 .\src\mybrewapp.c:157 (L)
*AEEHeap.c:1279 - -------------------------
*AEEHeap.c:1280 - 382399 Alloc - Total
*AEEHeap.c:1281 - 0 OEM
*AEEHeap.c:1282 - 137635 BREW
*AEEHeap.c:1283 - 244764 Apps
*AEEHeap.c:1284 - 13041 Wasted
*AEEHeap.c:1285 - 3699884 Free - Total
*AEEHeap.c:1286 - 3670084 Largest
*AEEHeap.c:1287 - 3670084 Largest Non Seq.
*AEEHeap.c:1288 - 3699252 Total Non Seq.
*AEEHeap.c:1289 - -------------------------
*AEEHeap.c:1167 - 100 - mybrewapp #1960 .\src\mybrewapp.c:157 (L)
In line 157of mybrewapp.c, I had this code.
str=(char *)MALLOC(100*sizeof(char));It means that memory for 'str' is allocated but not released.
*AEEHeap.c:1284 - 13041 WastedThis gives the amount of memory wasted
This document is a good one related to debugging of BREw apps, one section dealing with memory leak messages (Different BPOINT message types).
PROG-805- BREW Application Debugging for Developers and OEMs
http://brew.qualcomm.com/brew_bnry/pdf/brew_2007/Prog-805_Fryckman_v01.pdf

priya_du wrote:But from this how can I know which memory i have to free???
I purposefully created some memory leaks in my sample application. One was not freeing one memory and 2 were not releasing 2 interfaces. This is what you will get in logs...See the bold part, it indicates memory leak..
Quote:
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253C940 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253FEF0 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CF80 mybrewapp
*AEEHeap.c:1265 - ------ App Heap Info ------
*AEEHeap.c:1167 - 100 - mybrewapp #1960 .\src\mybrewapp.c:157 (L)
*AEEHeap.c:1279 - -------------------------
*AEEHeap.c:1280 - 382399 Alloc - Total
*AEEHeap.c:1281 - 0 OEM
*AEEHeap.c:1282 - 137635 BREW
*AEEHeap.c:1283 - 244764 Apps
*AEEHeap.c:1284 - 13041 Wasted
*AEEHeap.c:1285 - 3699884 Free - Total
*AEEHeap.c:1286 - 3670084 Largest
*AEEHeap.c:1287 - 3670084 Largest Non Seq.
*AEEHeap.c:1288 - 3699252 Total Non Seq.
*AEEHeap.c:1289 - -------------------------
*AEEHeap.c:1167 - 100 - mybrewapp #1960 .\src\mybrewapp.c:157 (L)
In line 157of mybrewapp.c, I had this code.
str=(char *)MALLOC(100*sizeof(char));It means that memory for 'str' is allocated but not released.
*AEEHeap.c:1284 - 13041 WastedThis gives the amount of memory wasted
This document is a good one related to debugging of BREw apps, one section dealing with memory leak messages (Different BPOINT message types).
PROG-805- BREW Application Debugging for Developers and OEMs
http://brew.qualcomm.com/brew_bnry/pdf/brew_2007/Prog-805_Fryckman_v01.pdf

Quote:*OEMOS.c:683 - BPOINT Type 1, Node 0x0253C940 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253FEF0 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x02183210 mybrewapp
*AEEHeap.c:1265 - ------ App Heap Info ------
*AEEHeap.c:1167 - 107 - mybrewapp #1888 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021850B0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1957 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021850F0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1958 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185130 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1959 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185170 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1960 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021851B0 mybrewapp
*AEEHeap.c:1167 - 257 - mybrewapp #1962 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1886 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021853E8 mybrewapp
*AEEHeap.c:1167 - 136 - mybrewapp #1876 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEDisp.c:1343 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021854A0 mybrewapp
*AEEHeap.c:1167 - 120 - mybrewapp #1877 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:207 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185548 mybrewapp
*AEEHeap.c:1167 - 107 - mybrewapp #1890 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021857E0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1952 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185B68 mybrewapp
*AEEHeap.c:1167 - 4096 - mybrewapp #1965 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1908 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02187338 mybrewapp
*AEEHeap.c:1167 - 107 - mybrewapp #1886 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02188448 mybrewapp
*AEEHeap.c:1167 - 1288 - mybrewapp #1950 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:212 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02189F38 mybrewapp
*AEEHeap.c:1167 - 8192 - mybrewapp #1963 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1893 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0218DEF8 mybrewapp
*AEEHeap.c:1167 - 285407 - mybrewapp #1930 \p4c\brew-dev3x-automated-build\brewery\pk\lib\src\aee\AEEBitmap.c:120 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021D3A08 mybrewapp
*AEEHeap.c:1167 - 144125 - mybrewapp #1951 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:872 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021F6D38 mybrewapp
*AEEHeap.c:1167 - 123307 - mybrewapp #1961 \p4c\brew-dev3x-automated-build\brewery\pk\lib\src\aee\AEEBitmap.c:120 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02214F10 mybrewapp
*AEEHeap.c:1167 - 8192 - mybrewapp #1964 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1901 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02216F40 mybrewapp
*AEEHeap.c:1167 - 245120 - mybrewapp #1968 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:207 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CF80 mybrewapp
*AEEHeap.c:1167 - 48 - mybrewapp #1917 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEIJGDecoder.c:502 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CFE0 mybrewapp
*AEEHeap.c:1167 - 204 - mybrewapp #1918 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEGenericViewer.c:126 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D0D8 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1953 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D118 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1954 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D158 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1955 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D198 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1956 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D2D0 mybrewapp
*AEEHeap.c:1167 - 528 - mybrewapp #1967 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:1298 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D670 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1885 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253DC28 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1887 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253DF08 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1889 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253E340 mybrewapp
*AEEHeap.c:1167 - 16 - mybrewapp #1919 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEScale.c:855 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02541790 mybrewapp
*AEEHeap.c:1167 - 350 - mybrewapp #1966 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1915 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02541920 mybrewapp
*AEEHeap.c:1167 - 100 - mybrewapp #1969 .\src\mybrewapp.c:157 (L)
*AEEHeap.c:1279 - -------------------------
*AEEHeap.c:1280 - 1206362 Alloc - Total
*AEEHeap.c:1281 - 0 OEM
*AEEHeap.c:1282 - 137667 BREW
*AEEHeap.c:1283 - 1068695 Apps
*AEEHeap.c:1284 - 14630 Wasted
*AEEHeap.c:1285 - 2874332 Free - Total
*AEEHeap.c:1286 - 2847376 Largest
*AEEHeap.c:1287 - 2847376 Largest Non Seq.
*AEEHeap.c:1288 - 2874244 Total Non Seq.
*AEEHeap.c:1289 - -------------------------
This is the message I got when I did not release the IImage pointer after loading a Gif file using IIMAGE_Load()

Quote:*OEMOS.c:683 - BPOINT Type 1, Node 0x0253C940 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253FEF0 mybrewapp
*OEMOS.c:683 - BPOINT Type 1, Node 0x02183210 mybrewapp
*AEEHeap.c:1265 - ------ App Heap Info ------
*AEEHeap.c:1167 - 107 - mybrewapp #1888 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021850B0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1957 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021850F0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1958 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185130 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1959 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185170 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1960 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021851B0 mybrewapp
*AEEHeap.c:1167 - 257 - mybrewapp #1962 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1886 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021853E8 mybrewapp
*AEEHeap.c:1167 - 136 - mybrewapp #1876 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEDisp.c:1343 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021854A0 mybrewapp
*AEEHeap.c:1167 - 120 - mybrewapp #1877 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:207 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185548 mybrewapp
*AEEHeap.c:1167 - 107 - mybrewapp #1890 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021857E0 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1952 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02185B68 mybrewapp
*AEEHeap.c:1167 - 4096 - mybrewapp #1965 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1908 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02187338 mybrewapp
*AEEHeap.c:1167 - 107 - mybrewapp #1886 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02188448 mybrewapp
*AEEHeap.c:1167 - 1288 - mybrewapp #1950 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:212 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02189F38 mybrewapp
*AEEHeap.c:1167 - 8192 - mybrewapp #1963 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1893 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0218DEF8 mybrewapp
*AEEHeap.c:1167 - 285407 - mybrewapp #1930 \p4c\brew-dev3x-automated-build\brewery\pk\lib\src\aee\AEEBitmap.c:120 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021D3A08 mybrewapp
*AEEHeap.c:1167 - 144125 - mybrewapp #1951 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:872 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x021F6D38 mybrewapp
*AEEHeap.c:1167 - 123307 - mybrewapp #1961 \p4c\brew-dev3x-automated-build\brewery\pk\lib\src\aee\AEEBitmap.c:120 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02214F10 mybrewapp
*AEEHeap.c:1167 - 8192 - mybrewapp #1964 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1901 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02216F40 mybrewapp
*AEEHeap.c:1167 - 245120 - mybrewapp #1968 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:207 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CF80 mybrewapp
*AEEHeap.c:1167 - 48 - mybrewapp #1917 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEIJGDecoder.c:502 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253CFE0 mybrewapp
*AEEHeap.c:1167 - 204 - mybrewapp #1918 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEGenericViewer.c:126 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D0D8 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1953 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D118 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1954 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D158 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1955 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D198 mybrewapp
*AEEHeap.c:1167 - 14 - mybrewapp #1956 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1442 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D2D0 mybrewapp
*AEEHeap.c:1167 - 528 - mybrewapp #1967 c:\p4c\brew-dev3x-automated-build\brewery\pk\src\OEMBitmap_generic.h:1298 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253D670 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1885 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253DC28 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1887 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253DF08 mybrewapp
*AEEHeap.c:1167 - 690 - mybrewapp #1889 \p4c\brew-dev3x-automated-build\brewery\libdev\src\fonts\AEEVarBitFont.c:50 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x0253E340 mybrewapp
*AEEHeap.c:1167 - 16 - mybrewapp #1919 \p4c\brew-dev3x-automated-build\brewery\libdev\src\Aee\AEEScale.c:855 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02541790 mybrewapp
*AEEHeap.c:1167 - 350 - mybrewapp #1966 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c:1915 (L)
*OEMOS.c:683 - BPOINT Type 1, Node 0x02541920 mybrewapp
*AEEHeap.c:1167 - 100 - mybrewapp #1969 .\src\mybrewapp.c:157 (L)
*AEEHeap.c:1279 - -------------------------
*AEEHeap.c:1280 - 1206362 Alloc - Total
*AEEHeap.c:1281 - 0 OEM
*AEEHeap.c:1282 - 137667 BREW
*AEEHeap.c:1283 - 1068695 Apps
*AEEHeap.c:1284 - 14630 Wasted
*AEEHeap.c:1285 - 2874332 Free - Total
*AEEHeap.c:1286 - 2847376 Largest
*AEEHeap.c:1287 - 2847376 Largest Non Seq.
*AEEHeap.c:1288 - 2874244 Total Non Seq.
*AEEHeap.c:1289 - -------------------------
This is the message I got when I did not release the IImage pointer after loading a Gif file using IIMAGE_Load()

Oceans eleven wrote:This is the message I got when I did not release the IImage pointer after loading a Gif file using IIMAGE_Load()
it shows lines but it is not actual possition why.

Oceans eleven wrote:This is the message I got when I did not release the IImage pointer after loading a Gif file using IIMAGE_Load()
it shows lines but it is not actual possition why.

vikrant_du wrote:it shows lines but it is not actual possition why.
*AEEHeap.c:1167 - 350 - mybrewapp #1966 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c
You can get an idea of where the memory allocated has not been freed. The memory for GiFviewer (loading a GIF image) is allocated in the file aeegifviewer.c. So we can guess that the memory leak is
- somewhere related to GIFviewer module (which most of the time will not happen, since it is thoroughly tested before it is released)
- next culprit is your application only, since gif image is loaded from your application. most probably it is related to not releasing of an interface.

vikrant_du wrote:it shows lines but it is not actual possition why.
*AEEHeap.c:1167 - 350 - mybrewapp #1966 c:\ab\sd-uione-build2_131\1.1.1\20070614-17.20\rel\gifviewer\gifviewer\src\aeegifviewer.c
You can get an idea of where the memory allocated has not been freed. The memory for GiFviewer (loading a GIF image) is allocated in the file aeegifviewer.c. So we can guess that the memory leak is
- somewhere related to GIFviewer module (which most of the time will not happen, since it is thoroughly tested before it is released)
- next culprit is your application only, since gif image is loaded from your application. most probably it is related to not releasing of an interface.