| View previous topic :: View next topic |
| Author |
Message |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Thu Apr 25, 2019 8:51 pm Post subject: dealloc a globalalloc? |
|
|
good day,
how to dealloc a globalalloc?
tested to dealloc it , it did not erase the the allocated mem,
but this,
alloc(_myvar,4)
registersymbol(_myvar)
...
...
dealloc(_myvar,4)
unregistersymbol(_myvar)
will erase allocated mem,
thanks,
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25876 Location: The netherlands
|
Posted: Fri Apr 26, 2019 2:09 am Post subject: |
|
|
globalalloc can't be deallocated. They will always use the same address and are grouped in the same memory block as other globalalloc regions
At best you can do unregistersymbol(allocname) so you can do a new globalalloc with a different size (still won't free the old one)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Fri Apr 26, 2019 4:18 am Post subject: |
|
|
| okay, thanks
|
|
| Back to top |
|
 |
|