DirectoryInfo dir =
fs.Read(byteArray, 0, length); fs.Close(); for (int j=0; j<byteArray.Length; j++) { // Go do some stuff with this binary data... }}So, my question is, after my for loop, how do I "clean up" the byteArray array. I've tried calling GC.Collect() and that has no effect. After a couple of files, VS throws an out of memory error and because the process is using all the RAM.This is probably a really easy question, I've just never dealt with memory allocation before.