How to release array memory?
How to release array memory?
PureBasic Help says the following, "To delete the content of an array and release its used memory during program flow, call Dim with array name and 0 elements." Does this work, and if so, what is the format? I can't seem to get it to work
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
it does work, but the first element stays callable, only loses its value.
dunno if it's handeled like a single variable then.
dunno if it's handeled like a single variable then.
Code: Select all
EnableExplicit
Dim a(100)
a(0) = 50
Debug a(0)
Dim a(0)
Debug a(0)
oh... and have a nice day.