ReAllocateMemory() Id# problem
Posted: Tue Mar 19, 2024 12:45 pm
Hello!
I need to resize 'on the fly' a memory portion, but the problem is that the ID is not the same. How can I do so that it remains THE SAME ID ?
In this example, *f has changed after memory resizing. How can I resize keeping the same ID ?
I need to resize 'on the fly' a memory portion, but the problem is that the ID is not the same. How can I do so that it remains THE SAME ID ?
Code: Select all
*f=AllocateMemory(1000)
*g=AllocateMemory(1200)
Debug "*f="+Str(*f)
*f=ReAllocateMemory(*f,MemorySize(*g))
Debug "*f="+Str(*f)