Miguel,

On Fri, 24 Oct 2008, Miguel Angel Marchuet wrote:
> 2008-10-23 17:52 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>
>   * source\vm\fm.c
>     * restored the use of memory, now to test DL_ALLOC will be explicit with 
> macro -DHB_FM_DL_ALLOC

     Could you please revert these changes? You are hiding real memory
leaks.

     The real problem is: all times you're allocating "HB_MEMINFO_SIZE +
sizeof( UINT32 )" (it was "sizeof( ULONG )" ). No matter if you use
HB_FM_STATICS or not. When anyone calls hb_xgrab(), returned pointer
increments HB_MEMINFO_SIZE, but hb_xfree() doesn't have HB_FM_PTR() when
it doesn't uses HB_FM_STATICS.

     I don't know why with your recent changes free() doesn't crashes on
a non-allocated memory block.

Atte.
  Vic

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to