And a bit more detail: You don't get an identifier, you get a pointer from these commands. And a pointer directly points to a memory region. If you enlarge that memory it might not have enough space behind it to be enlarged in place. Instead your operating system just allocates a completely fresh memory region for you, copies the data to its new place and gives you the new pointer.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Thanks Nic(for)TheQuick answer.
I see that it is indeed impossible, and now I understand why.
The only way to keep the same pointer number is to allocate it large enough the first time the memory is allocated.
But that's not possible in my program so I can live with the pointer number change. This is no longer a problem.
Thank you!
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%