Hi Toninho,
Yes, I've seen it. Even installed the tool.

I just can guess that dlmalloc won't explictly deal with
releasing its whole pool (which may include preallocated
areas) while the app is running, and instead leaves that
for the OS when quitting the app. Maybe similar is happening
with GTs/FS. If this is the case, it's not critical, and may
be even faster to let the OS deal with that on exit.

If someone has a better idea, please tell us.

This is my report for a simple MSVC / GTWIN "hello world" one-liner:
---
        2  Heap                  022D0000       4096  HeapCreate(0,4096,0)
        0045A39A   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        3  Thread Local Storage  00000018          0  TlsAlloc
        0045A249   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        4  Thread Local Storage  00000019          0  TlsAlloc
        00459EC3   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        5  Heap Memory           022D1EA0        532
 HeapAlloc(36503552,8,532)
        00464736   C:\memproof\test.exe
        0045E719   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        7  Heap Memory           022D20D0       1792
 HeapAlloc(36503552,8,1792)
        00464736   C:\memproof\test.exe
        0045E719   C:\memproof\test.exe
        00456A6F   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        8  Std. Handle           00000003          0  GetStdHandle(-10)
        00459C9F   C:\memproof\test.exe
        00456A6F   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
        9  Std. Handle           00000007          0  GetStdHandle(-11)
        00459C9F   C:\memproof\test.exe
        00456A6F   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
       10  Std. Handle           0000000B          0  GetStdHandle(-12)
        00459C9F   C:\memproof\test.exe
        00456A6F   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
       13  Heap Memory           022D3090        544
 HeapAlloc(36503552,0,544)
       15  Heap Memory           022D32C8         31
 HeapAlloc(36503552,0,31)
       16  Heap Memory           022D3300        168
 HeapAlloc(36503552,8,168)
        00464736   C:\memproof\test.exe
        0045E719   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
       17  Heap Memory           022D33C0         53
 HeapAlloc(36503552,8,53)
        00464736   C:\memproof\test.exe
       18  Heap Memory           022D3410         52
 HeapAlloc(36503552,8,52)
        00464736   C:\memproof\test.exe
       19  Heap Memory           022D3460         60
 HeapAlloc(36503552,8,60)
        00464736   C:\memproof\test.exe
       20  Heap Memory           022D34B8         32
 HeapAlloc(36503552,8,32)
        00464736   C:\memproof\test.exe
       21  Heap Memory           022D34F0         58
 HeapAlloc(36503552,8,58)
        00464736   C:\memproof\test.exe
       22  Heap Memory           022D3548         19
 HeapAlloc(36503552,8,19)
        00464736   C:\memproof\test.exe
       23  Heap Memory           022D3578         49
 HeapAlloc(36503552,8,49)
        00464736   C:\memproof\test.exe
       24  Heap Memory           022D35C8         17
 HeapAlloc(36503552,8,17)
        00464736   C:\memproof\test.exe
       25  Heap Memory           022D35F8         36
 HeapAlloc(36503552,8,36)
        00464736   C:\memproof\test.exe
       26  Heap Memory           022D3638         29
 HeapAlloc(36503552,8,29)
        00464736   C:\memproof\test.exe
       27  Heap Memory           022D3670         16
 HeapAlloc(36503552,8,16)
        00464736   C:\memproof\test.exe
       28  Heap Memory           022D3698         20
 HeapAlloc(36503552,8,20)
        00464736   C:\memproof\test.exe
       29  Heap Memory           022D36C8         42
 HeapAlloc(36503552,8,42)
        00464736   C:\memproof\test.exe
       30  Heap Memory           022D3710         13
 HeapAlloc(36503552,8,13)
        00464736   C:\memproof\test.exe
       31  Heap Memory           022D3738         42
 HeapAlloc(36503552,8,42)
        00464736   C:\memproof\test.exe
       32  Heap Memory           022D3780         64
 HeapAlloc(36503552,8,64)
        00464736   C:\memproof\test.exe
       33  Heap Memory           022D37D8         44
 HeapAlloc(36503552,8,44)
        00464736   C:\memproof\test.exe
       34  Heap Memory           022D3820         56
 HeapAlloc(36503552,8,56)
        00464736   C:\memproof\test.exe
       35  Heap Memory           022D3870         18
 HeapAlloc(36503552,8,18)
        00464736   C:\memproof\test.exe
       36  Heap Memory           022D38A0         23
 HeapAlloc(36503552,8,23)
        00464736   C:\memproof\test.exe
       37  Heap Memory           022D38D0         14
 HeapAlloc(36503552,8,14)
        00464736   C:\memproof\test.exe
       38  Heap Memory           022D38F8        550
 HeapAlloc(36503552,8,550)
        00464736   C:\memproof\test.exe
       39  Heap Memory           022D3B38         66
 HeapAlloc(36503552,8,66)
        00464736   C:\memproof\test.exe
       40  Heap Memory           022D3B98         57
 HeapAlloc(36503552,8,57)
        00464736   C:\memproof\test.exe
       41  Heap Memory           022D3BF0         27
 HeapAlloc(36503552,8,27)
        00464736   C:\memproof\test.exe
       42  Heap Memory           022D3C28         68
 HeapAlloc(36503552,8,68)
        00464736   C:\memproof\test.exe
       43  Heap Memory           022D3C88         19
 HeapAlloc(36503552,8,19)
        00464736   C:\memproof\test.exe
       44  Heap Memory           022D3CB8         24
 HeapAlloc(36503552,8,24)
        00464736   C:\memproof\test.exe
       45  Heap Memory           022D3CE8         30
 HeapAlloc(36503552,8,30)
        00464736   C:\memproof\test.exe
       46  Heap Memory           022D3D20         53
 HeapAlloc(36503552,8,53)
        00464736   C:\memproof\test.exe
       47  Heap Memory           022D3D70         20
 HeapAlloc(36503552,8,20)
        00464736   C:\memproof\test.exe
       48  Heap Memory           022D3DA0         15
 HeapAlloc(36503552,8,15)
        00464736   C:\memproof\test.exe
       49  Heap Memory           022D3DC8         22
 HeapAlloc(36503552,8,22)
        00464736   C:\memproof\test.exe
       50  Heap Memory           022D3DF8         40
 HeapAlloc(36503552,8,40)
        00464736   C:\memproof\test.exe
       51  Heap Memory           022D3E38         39
 HeapAlloc(36503552,8,39)
        00464736   C:\memproof\test.exe
       52  Heap Memory           022D3E78         15
 HeapAlloc(36503552,8,15)
        00464736   C:\memproof\test.exe
       53  Heap Memory           022D3EA0         18
 HeapAlloc(36503552,8,18)
        00464736   C:\memproof\test.exe
       54  Heap Memory           022D3ED0         47
 HeapAlloc(36503552,8,47)
        00464736   C:\memproof\test.exe
       55  Heap Memory           022D3F18         72
 HeapAlloc(36503552,8,72)
        00464736   C:\memproof\test.exe
       56  Heap Memory           022D3F78         74
 HeapAlloc(36503552,8,74)
        00464736   C:\memproof\test.exe
       57  Heap Memory           022D3FE0         18
 HeapAlloc(36503552,8,18)
        00464736   C:\memproof\test.exe
       59  Heap Memory           022D4010        128
 HeapAlloc(36503552,8,128)
        00464736   C:\memproof\test.exe
        0045E719   C:\memproof\test.exe
        7C817062 RegisterWaitForInputIdle  C:\windows\system32\kernel32.dll
       60  Virtual Memory        022E0000      65536
 VirtualAlloc(00000000,65536,12288,4)
       64  Std. Handle           00000003          0  GetStdHandle(-10)
       66  File                  00000013          0
 CreateFile("CONIN$",-1073741824,3,00000000,3,0,0)
---

Brgds,
Viktor

On Tue, Feb 10, 2009 at 11:53 AM, toni...@fwi <[email protected]>wrote:

> >Hi everyone,
> >Who has what pending items (fixes, new development, TODOs)
> >before the 1.1 release?
>
> Hi Viktor, I have a lot of windows unfreed resources here. I don´t
> know if this is a problem that need be fixed before the 1.1 release,
> or if this issue is a real problem, but it exist.
>
> this is my post about it:
>
> ---cut---
> Hi ppl.
>
> I´m testing my application with MemProof and I found a lot of unfreed
> resources like VirtualAlloc, that need be freed with VirtualFree and
> GetStdHandle that is freed with CloseHandle.
>
> I´m looking at harbour sources and I see that VirtualAlloc is *only*
> used by dlmalloc.c and GetStdHandle is used in some files but I think
> that the problem is related to filesys.c.
>
> for test, a simple:
>
> function Main()
>   ? "Hello world!"
> return nil
>
> report the problem.
>
> Memproof is free and can be found here:
>
>
> http://www.onlythebestfreeware.com/out.asp?url=http://www.automatedqa.com/downloads/memp0950.zip
>
> ---cut---
>
>
>
> Best regards,
>
> Toninho.
>
>
>
>
>
> _______________________________________________________
> Yahoo! Mail - Sempre a melhor opção para você!
> Experimente já e veja as novidades.
> http://br.yahoo.com/mailbeta/tudonovo/
>
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to