Re: [xHarbour-developers] Memory Allocation Report

2017-02-12 Thread Enrico Maria Giordano


Il 12/02/2017 11:39, Andi Jahja ha scritto:

> Sorry, but I did not experience memory leak in this program.

This is what Mel Smith reported on comp.lang.xharbour newsgroup:

 > 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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


Re: [xHarbour-developers] Memory Allocation Report

2017-02-12 Thread Andi Jahja
Sorry, but I did not experience memory leak in this program.

Andi

On Sun, 12 Feb 2017 11:03:04 +0100
Enrico Maria Giordano  wrote:

> 
> 
> Il 12/02/2017 10:57, Andi Jahja ha scritto:
> 
> > Mind to send a self-contained example?
> 
> Here it is:
> 
> FUNCTION MAIN()
> 
>  ? OS()
> 
>  INKEY( 0 )
> 
>  RETURN NIL
> 
> EMG


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


Re: [xHarbour-developers] Memory Allocation Report

2017-02-12 Thread Andi Jahja


Mind to send a self-contained example?
Sent from my Samsung device

 Original message 
From: Enrico Maria Giordano  
Date: 02/12/2017  01:10  (GMT+07:00) 
To: xHarbour Developers Mailing List 
 
Subject: [xHarbour-developers] Memory Allocation Report 

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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


Re: [xHarbour-developers] OS() function

2017-02-12 Thread Andi Jahja


Mind to send a test program?
Sent from my Samsung device

 Original message 
From: Enrico Maria Giordano  
Date: 02/11/2017  05:48  (GMT+07:00) 
To: xHarbour Developers Mailing List 
 
Subject: [xHarbour-developers] OS() function 

Currently the function OS() on Windows 10 results in the wrong value

Windows 8 6.2.9200

My proposal is to read the version from the registry.

Alexandre Cavalcante Alencar suggest to attach a proper manifest file to 
the final EXE, a solution that I don't like very much.

Any opinions?

EMG

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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


Re: [xHarbour-developers] Memory Allocation Report

2017-02-12 Thread Enrico Maria Giordano


Il 12/02/2017 10:57, Andi Jahja ha scritto:

> 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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


Re: [xHarbour-developers] OS() function

2017-02-12 Thread Andi Jahja


Sorry I replied a wrong thread.
Sent from my Samsung device

 Original message 
From: Enrico Maria Giordano  
Date: 02/11/2017  05:48  (GMT+07:00) 
To: xHarbour Developers Mailing List 
 
Subject: [xHarbour-developers] OS() function 

Currently the function OS() on Windows 10 results in the wrong value

Windows 8 6.2.9200

My proposal is to read the version from the registry.

Alexandre Cavalcante Alencar suggest to attach a proper manifest file to 
the final EXE, a solution that I don't like very much.

Any opinions?

EMG

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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers