D
devgrt
I am having what I think are some memory problems after a file read.
Is there any problem with reading a file into a byte array that is around
300KB and then passing that array by ref to another function?:
System.IO.FileStream inFile = new System.IO.FileStream(aName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
long len = inFile.Length;
byte [] binaryData = new Byte[(int)len];
long bytesRead = inFile.Read(binaryData, 0, (int)len);
inFile.Close();
hexstring r = HashFile(ref binaryData);
Thank you
Is there any problem with reading a file into a byte array that is around
300KB and then passing that array by ref to another function?:
System.IO.FileStream inFile = new System.IO.FileStream(aName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
long len = inFile.Length;
byte [] binaryData = new Byte[(int)len];
long bytesRead = inFile.Read(binaryData, 0, (int)len);
inFile.Close();
hexstring r = HashFile(ref binaryData);
Thank you