Re: allocated memory enlargement

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 27 Mar 2004, at 12:13, Pete Lomax wrote:

> 
> http://click.topica.com/caab5n1b1dd66b6816za/ Ivo Interactive
> 
> 
> >Kat wrote:
> >> But the code above is not *expand* file, it's *making another new* file! 
> Kat, it doesn't seem you can do this with Eu's allocate, but if you
> grab the memory yourself using kernel32's GlobalAlloc, HeapAlloc, or
> LocalAlloc then you should be able to later call GlobalReAlloc, 
> HeapReAlloc, or LocalReAlloc respectively.

Thanks, Pete. A couple questions:

1) do flags like LMEM_MOVEABLE copy the memory over again, or do they 
move the memory in blocks, reallocating the new and deallocating the old as 
it goes? Is this fast?

2) how do i know the value of LMEM_MOVEABLE so i can pass it to a 
winapi function?

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu