Browse Source

Updated DiskAccessLibrary to v1.4.1.3

Tal Aloni 7 years ago
parent
commit
f6230c24c5

+ 7 - 0
DiskAccessLibrary/Disks/RAMDisk.cs

@@ -26,6 +26,13 @@ namespace DiskAccessLibrary
             m_diskBytes = new byte[size];
         }
 
+        public void Free()
+        {
+            m_diskBytes = null;
+            GC.Collect();
+            GC.WaitForPendingFinalizers();
+        }
+
         public override byte[] ReadSectors(long sectorIndex, int sectorCount)
         {
             return ByteReader.ReadBytes(m_diskBytes, (int)sectorIndex * BytesPerRAMDiskSector, sectorCount * BytesPerRAMDiskSector);

+ 2 - 2
DiskAccessLibrary/Properties/AssemblyInfo.cs

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
 //
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
-[assembly: AssemblyVersion("1.4.1.2")]
-[assembly: AssemblyFileVersion("1.4.1.2")]
+[assembly: AssemblyVersion("1.4.1.3")]
+[assembly: AssemblyFileVersion("1.4.1.3")]