Re: Freeup memory? (Array)
Array.Clear just clears the values from the array elements, so if you start with a 300 element array filled with strings, after clearing you'll have a 300 element array filled with ""
erase completely erases the array. after erase your array = nothing.
but i don't think you'll be saving much memory doing that
Re: Freeup memory? (Array)
Quote:
but i don't think you'll be saving much memory doing that
So I guess it's a bit pointless in my case, but thank you for telling me how it works. The msdn didn't mention that. :lol:
Edit: after adding the erase it seems tat the app uses even more memory ... :rolleyes: