Re: memorymanager/fastmm question/suggestion



Hi Dan,

> You can get the same behavior by doing with the default MM
> SetLength(s,10000);
> Delete(s,1,10000);
That doesn't work. Delete first calls Move and then SetLength. SetLength
frees the block if the length is 0.

Regards,
Pierre

--
Fastcode Project: http://www.fastcodeproject.org/


.



Relevant Pages

  • Re: memorymanager/fastmm question/suggestion
    ... Delete first calls Move and then SetLength. ... > frees the block if the length is 0. ... I wasn't aware of the freeing in SetLength when the length is 0, ... Another gotcha, this would cause the same problem: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode UpperCase B&V 3.0
    ... V5 functions always call SetLength (rounding up if they need). ... Aleksandr ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode UpperCase B&V 3.0
    ... > V5 functions always call SetLength (rounding up if they need). ... Dennis ... Prev by Date: ...
    (borland.public.delphi.language.basm)