public void Dispose() { Release(); if (m_dll != null) { m_dll.Dispose(); m_dll = null; } GC.SuppressFinalize(this); }
//-----------Public functions---------------------------------------------- public CoreLib(string userPath) { try { m_dll = new CoreDll(); } catch { throw new Exception("Can't load core library!"); } if (Version.Compatible(GetVersion(CoreDll.VersionType.AntiDupl))) { m_handle = m_dll.adCreateW(userPath); } else { throw new Exception("Incompatible core library version!"); } }