mirror of https://github.com/dahall/Vanara.git
Hopeful fix for #373
parent
e0685fdf46
commit
716b9e4036
|
@ -131,15 +131,8 @@ namespace Vanara.InteropServices
|
|||
/// <remarks>This method is not a member in IStream.</remarks>
|
||||
public override void Close()
|
||||
{
|
||||
if (netStream is not null)
|
||||
{
|
||||
netStream.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
comStream.Commit(0 /*STGC_DEFAULT*/);
|
||||
// Marshal.ReleaseComObject(TheIStream); // Investigate this because we cannot release an IStream to the stash file
|
||||
}
|
||||
netStream?.Close();
|
||||
try { comStream?.Commit(0 /*STGC_DEFAULT*/); } catch { }
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue