Página 1 de 1

Memory error, in 3.01

Publicado: Lun Mar 25, 2013 9:30 pm
por Guest
Application Memory Allocation Report -
C:xailer3ProjectsOracleToolsOracleTools.exe
I don't know if it happens in the debugger or not. This happened during
the running of the executables.
Same program, that was used in 2.x, without errors.
Terminated at: 2013.03.25 09:21:39
Total memory allocated: 10292551 bytes (96600 block(s))
Warning, memory allocated but not released: 2536 bytes (10 block(s))
Block 1 04c1abf0 (size 896) XA_WLCREATE(0),
" 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 "
Block 2 05c81a90 (size 896) XA_WLCREATE(0),
" 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000A822C8050000 000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 "
Block 3 05c822a8 (size 104) XA_WLADD(0),
" 5000000020ABCA0552000000000000004900000000000000440000000000 000045000000000000004E000000000000005F0000000000000050000000 3074C104490000000000000044000000000000004D000000000000000000 0000000000000000000001000000 "
Block 4 04c17430 (size 32) XA_WLADD(0),
" 49000000D8A5CA0544000000000000000000000000000000000000000200 0000 "
Block 5 05caa5d8 (size 88) XA_WLADD(0),
" 4C000000A079C90541000000000000005300000000000000540000000000 00005F000000000000004E0000000000000041000000000000004D000000 00000000450000000000000000000000000000000000000003000000 "
Block 6 05c979a0 (size 96) XA_WLADD(0),
" 46000000407FC90549000000000000005200000000000000530000000000 000054000000000000005F000000000000004E0000000000000041000000 000000004D00000000000000450000000000000000000000000000000000 000004000000 "
Block 7 05c97f40 (size 32) XA_WLADD(0),
" 4D0000000000000049000000000000000000000000000000000000000500 0000 "
Block 8 05caab20 (size 192) XA_WLADD(0),
" 410000000000000052000000000000004100000000000000440000000000 0000410000000000000050000000000000005F0000000000000054000000 1804CA05450000000000000052000000000000004D000000000000005F00 00000000000043000000000000004F000000000000004400000000000000 45000000000000005F0000000000000045000000000000004E0000000000 000054000000000000005200000000000000590000000000000000000000 000000000000000006000000 "
Block 9 05ca0418 (size 72) XA_WLADD(0),
" 41000000C891C905500000000000000050000000000000004C0000000000 00005F000000000000004E000000000000004F0000000000000000000000 000000000000000007000000 "
Block 10 05c991c8 (size 88) XA_WLADD(0),
" 530000000000000054000000000000005900000000000000500000000000 00005F0000000000000043000000000000004F0000000000000044000000 00000000450000000000000000000000000000000000000008000000 "

Memory error, in 3.01

Publicado: Mar Mar 26, 2013 9:08 pm
por jfgimenez
Dwayne,
> Application Memory Allocation Report -
> C:xailer3ProjectsOracleToolsOracleTools.exe
>
>
> I don't know if it happens in the debugger or not. This happened
> during the running of the executables.
>
> Same program, that was used in 2.x, without errors.
>
>
> Terminated at: 2013.03.25 09:21:39
>
> Total memory allocated: 10292551 bytes (96600 block(s))
>
> Warning, memory allocated but not released: 2536 bytes (10 block(s))
>
> Block 1 04c1abf0 (size 896) XA_WLCREATE(0),
> " 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 "
>
> Block 2 05c81a90 (size 896) XA_WLCREATE(0),
> " 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000A822C8050000 000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000 "
>
> Block 3 05c822a8 (size 104) XA_WLADD(0),
> " 5000000020ABCA0552000000000000004900000000000000440000000000 000045000000000000004E000000000000005F0000000000000050000000 3074C104490000000000000044000000000000004D000000000000000000 0000000000000000000001000000 "
>
> Block 4 04c17430 (size 32) XA_WLADD(0),
> " 49000000D8A5CA0544000000000000000000000000000000000000000200 0000 "
>
> Block 5 05caa5d8 (size 88) XA_WLADD(0),
> " 4C000000A079C90541000000000000005300000000000000540000000000 00005F000000000000004E0000000000000041000000000000004D000000 00000000450000000000000000000000000000000000000003000000 "
>
> Block 6 05c979a0 (size 96) XA_WLADD(0),
> " 46000000407FC90549000000000000005200000000000000530000000000 000054000000000000005F000000000000004E0000000000000041000000 000000004D00000000000000450000000000000000000000000000000000 000004000000 "
>
> Block 7 05c97f40 (size 32) XA_WLADD(0),
> " 4D0000000000000049000000000000000000000000000000000000000500 0000 "
>
> Block 8 05caab20 (size 192) XA_WLADD(0),
> " 410000000000000052000000000000004100000000000000440000000000 0000410000000000000050000000000000005F0000000000000054000000 1804CA05450000000000000052000000000000004D000000000000005F00 00000000000043000000000000004F000000000000004400000000000000 45000000000000005F0000000000000045000000000000004E0000000000 000054000000000000005200000000000000590000000000000000000000 000000000000000006000000 "
>
> Block 9 05ca0418 (size 72) XA_WLADD(0),
> " 41000000C891C905500000000000000050000000000000004C0000000000 00005F000000000000004E000000000000004F0000000000000000000000 000000000000000007000000 "
>
> Block 10 05c991c8 (size 88) XA_WLADD(0),
> " 530000000000000054000000000000005900000000000000500000000000 00005F0000000000000043000000000000004F0000000000000044000000 00000000450000000000000000000000000000000000000008000000 "
Those memory blocks probably belong to a dataset (perhaps a memdataset),
which is open at exit. Please, be sure that you are closing all datasets
before exiting the app.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Memory error, in 3.01

Publicado: Mar Mar 26, 2013 9:11 pm
por ignacio
Hello,
The memory leak existed previously but it was not reported. BTW, If you compile without debugger you will not see that information.
Your memory leak is related to a dataset not destroyed correctly. That's all.
Check the debugger windows after exiting from the application. It may give you some clues about the datasets not destroyed.
Regards,

Memory error, in 3.01

Publicado: Mar Mar 26, 2013 10:49 pm
por Guest
Ok, will do, thanks.

Memory error, in 3.01

Publicado: Jue Mar 28, 2013 12:24 am
por Guest
The great thing about 3.x, is that it actually reports those errors.
I wasn't even aware that the datasets weren't being closed, when it was
built under 2.x.

Memory error, in 3.01

Publicado: Vie Mar 29, 2013 12:15 pm
por jfgimenez
Dwayne,
> The great thing about 3.x, is that it actually reports those errors.
Yes, both xHarbour and BCC was much less strict than Harbour and MinGW.
Now, many hidden errors arise, althogh sometimes it becomes frustrating,
but as you can see, it's better to find and fix them.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Memory error, in 3.01

Publicado: Vie Mar 29, 2013 2:36 pm
por Guest
Full agreement.