Discussion:
[xHarbour-developers] Memory Allocation Report
Enrico Maria Giordano
2017-02-11 18:10:52 UTC
Permalink
Any ideas on where to look to fix this problem?


******************************
Memory Allocation Report
Application: c:\xharbour\bin\harbour.exe
xHarbour Version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170101)
Compiler: Borland/Embarcadero C++ 7.2 (32-bit)
Platform: Windows XP 5.1.2600 Service Pack 3
Time Occured: 2017.02.11 09:18:04
Total memory allocated: 84930 bytes (774 blocks)
--------------------------------------------------------------------------------
WARNING! Memory allocated but not released: 296 bytes (1 blocks)

source\common\hbfsapi.c(172) hb_fsFNameSplit() Block 1 009D40BC (size 296)
"\CC\40\9D\00\00\00\00\00\00\00\00\00\DB\40\9D\00\63\3A\5C\63\67\69\5C\73\6F\75\72\63\65\5C\00\63"
--------------------------------------------------------------------------------
Memory Allocation Report
Application: c:\xharbour\bin\harbour.exe
xHarbour Version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170101)
Compiler: Borland/Embarcadero C++ 7.2 (32-bit)
Platform: Windows XP 5.1.2600 Service Pack 3
Time Occured: 2017.02.11 09:28:27
Total memory allocated: 84981 bytes (774 blocks)
--------------------------------------------------------------------------------
WARNING! Memory allocated but not released: 296 bytes (1 blocks)

source\common\hbfsapi.c(172) hb_fsFNameSplit() Block 1 009D40BC (size 296)
"\CC\40\9D\00\00\00\00\00\00\00\00\00\DB\40\9D\00\63\3A\5C\63\67\69\5C\73\6F\75\72\63\65\5C\00\63"
--------------------------------------------------------------------------------
*******************************

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Enrico Maria Giordano
2017-02-12 10:03:04 UTC
Permalink
Mind to send a self-contained example?
Here it is:

FUNCTION MAIN()

? OS()

INKEY( 0 )

RETURN NIL

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
Andi Jahja
2017-02-12 10:39:02 UTC
Permalink
Sorry, but I did not experience memory leak in this program.

Andi

On Sun, 12 Feb 2017 11:03:04 +0100
Post by Enrico Maria Giordano
Mind to send a self-contained example?
FUNCTION MAIN()
? OS()
INKEY( 0 )
RETURN NIL
EMG
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Enrico Maria Giordano
2017-02-12 10:42:31 UTC
Permalink
Post by Andi Jahja
Sorry, but I did not experience memory leak in this program.
I'll investigate. In the meantime, can you compile this?
FUNCTION MAIN()
? OS()
INKEY( 0 )
RETURN NIL
Do you get the same warning?
Yes, here is the warning for my ostest2.prg (as above):
************************
Memory Allocation Report
Application: c:\xharbour\bin\harbour.exe
xHarbour Version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170101)
Compiler: Borland/Embarcadero C++ 7.2 (32-bit)
Platform: Windows XP 5.1.2600 Service Pack 3
Time Occured: 2017.02.11 21:44:12
Total memory allocated: 40113 bytes (772 blocks)
--------------------------------------------------------------------------------
WARNING! Memory allocated but not released: 296 bytes (1 blocks)

source\common\hbfsapi.c(172) hb_fsFNameSplit() Block 1 009D40BC (size 296)
"\CC\40\9D\00\00\00\00\00\00\00\00\00\DB\40\9D\00\63\3A\5C\63\67\69\5C\73\6F\75\72\63\65\5C\00\63"
--------------------------------------------------------------------------------
*************************

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Loading...