>> ' This is the main method to call >> Public Function GetCRC() As Boolean >> Dim loStream As Stream >> loStream = New FileStream(cFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 8192) >> nCRC32 = GetCrc32(loStream) >> loStream.Close() >> Return True >> End Function >>You could also set the FileShare to ReadWrite. I'm not sure if it will help in this case, but it will allow other processes to be able to open it as well.
loStream = New FileStream(cFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 8192)