Re: Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-25 Thread toni...@fwi
>xHarbour does not enable DLMALLOC with the same conditions as >Harbour and it's the reason of difference. I guess you are using >__EXPORT__ macro which effectively disables DLMALLOC in xHarbour. > >BTW if you can test the above code with BCC6.1 to confirm the results >then it will really help.

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Pritpal Bedi
Przemek Przemyslaw Czerpak-2 wrote: > >> For ciriticalSection unreleased handles, it is the same with >> -DHB_FM_WIN_ALLOC an -DHB_FM_DL_ALLOC. The difference > > I know. I removed critical section deallocations due to problems > with VISTA and additional cost which we will have to pay for s

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Tue, 24 Feb 2009, Pritpal Bedi wrote: Hi Pritpal, > For ciriticalSection unreleased handles, it is the same with > -DHB_FM_WIN_ALLOC an -DHB_FM_DL_ALLOC. The difference I know. I removed critical section deallocations due to problems with VISTA and additional cost which we will have to pay f

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Wed, 25 Feb 2009, Andi Jahja wrote: > It's Harbour problem, IMHO. Have you try with xHarbour and see how > memproof reporting errors? In my case, Harbour did not release Virtual > Memory, but xHarbour released it. So, it is not Borland problem ;-) Yes and Harbour virtually effects this C code:

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Andi Jahja
On Tue, 24 Feb 2009 13:17:59 -0300 "toni...@fwi" wrote: > Hi Przemek, > > >Because it's part of CRTL. > >C compiler still have to allocate the console so ask borland > >why it does not deallocate it. > Thanks, now I understand. > > >And what are the results for above code if you compile it usin

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Pritpal Bedi
Hello Przemek Przemyslaw Czerpak-2 wrote: > > So if you want then I add such functionality but it will be > enabled only when USE_DL_PREFIX is defined. If you make some > test which confirm that the virtual addresses as freed as > expected then we can enable USE_DL_PREFIX as default. > I wil

Re: Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread toni...@fwi
Hi Przemek, >Because it's part of CRTL. >C compiler still have to allocate the console so ask borland >why it does not deallocate it. Thanks, now I understand. >And what are the results for above code if you compile it using hbmk2? The same, of course the problem is with BCC 6.10 Thank you to ex

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Tue, 24 Feb 2009, toni...@fwi wrote: Hi, > Thanks for answer. > >So why Pritpal has different results? > >Can you agree them ;-) > I agree of course and I don't know, but I compiled harbour with > DL_ALLOC and the results change in VirtualAlloc, but the rest are the > same. Why CreateFile, Get

Re: Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread toni...@fwi
Hi Przemek, Thanks for answer. >So why Pritpal has different results? >Can you agree them ;-) I agree of course and I don't know, but I compiled harbour with DL_ALLOC and the results change in VirtualAlloc, but the rest are the same. Why CreateFile, GetStdHandle and InitializeCriticalSection rema

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Tue, 24 Feb 2009, toni...@fwi wrote: Hi, > I recompile my local Harbour to use -DHB_FM_WIN_ALLOC and the result > are the same as using -DHB_FM_STD_ALLOC in my previous mail. So why Pritpal has different results? Can you agree them ;-) It's possible that you are linking some external librari

Re: Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread toni...@fwi
Hi Przemek, I recompile my local Harbour to use -DHB_FM_WIN_ALLOC and the result are the same as using -DHB_FM_STD_ALLOC in my previous mail. Thank you. Regards, Toninho. __ Faça ligações para outros computadores com o novo Yahoo! Messenger http:

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Tue, 24 Feb 2009, toni...@fwi wrote: > My environment is: Windows Vista Home Premium and set > HB_ARCHITECTURE=win, set HB_COMPILER=bcc32 > My Harbour is compiled with: > SET HB_USER_CFLAGS=-DHB_GUI -DHB_FM_STATISTICS_OFF -DHB_NO_PROFILER > -DADS_LIB_VERSION=700 -DHB_HASH_MSG_ITEMS -DHB_NO_DEBUG

Re: Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread toni...@fwi
>But I'm interesting why Toninho didn't confirm your results. >Is it newer BCC problem or wrongly created Harbour binaries >or test application. Hi Przemek, A simple test: ---cut--- procedure main() ? "hello word" return ---cut--- produces: ---cut--- 1 File 001

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Przemyslaw Czerpak
On Tue, 24 Feb 2009, Przemyslaw Czerpak wrote: Hi, > The only one thing which probably exist in DLMALLOC which > it not pleasure but does not cause any real problems is > the fact that it may not release all memory area allocated > by VirtualAlloc() and always keeps some small block(s) for > perfo

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-24 Thread Maurilio Longo
Pritpal, no, uhttpd leaks memory on OS/2 also where dlmalloc is not available. Maurilio. Pritpal Bedi wrote: > Hello Przemek > > Harbour compiled with -DHB_FM_WIN_ALLOC > doe snot produce any unreleased Virtual Mem Pages > as reported by MemProof. > > Plus exiting a thread also releases the

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-23 Thread Przemyslaw Czerpak
On Mon, 23 Feb 2009, Pritpal Bedi wrote: Hi, > Harbour compiled with -DHB_FM_WIN_ALLOC > doe snot produce any unreleased Virtual Mem Pages > as reported by MemProof. So we can try pacify it. But I'm interesting why Toninho didn't confirm your results. Is it newer BCC problem or wrongly created

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-23 Thread Pritpal Bedi
Hi I retreat my findings. Dlmalloc.c does not increase the size of the memory but memProof.exe reports unfreed blocks for sure. -WIN_ALLOC does not report any unfree blocks. Regards Pritpal Bedi Francesco Saverio Giudice wrote: > > Hi Pritpal, > at first look it seems that with -DHB_FM_WIN

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-23 Thread Francesco Saverio Giudice
Hi Pritpal, at first look it seems that with -DHB_FM_WIN_ALLOC is better, but the problem is still there. I've only a doubt: do I set correctly my env ? I have added: set HB_USER_CFLAGS=-DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_WIN_ALLOC I think yes. So I have to continue to investigate.

Re: [Harbour] -DHB_FM_WIN_ALLOC - VirtualAlloc/Free - Test Results

2009-02-23 Thread Francesco Saverio Giudice
Hi Pritpal, Il 23/02/2009 20.45, Pritpal Bedi ha scritto: This also shed light on uhttpd's reported high memory consumption in another thread. Francesco ? Just testing Best regards Francesco ___ Harbour mailing list Harbour@harbour-project.org http