Ejemplo n.º 1
0
 public void Dispose()
 {
     Release();
     if (m_dll != null)
     {
         m_dll.Dispose();
         m_dll = null;
     }
     GC.SuppressFinalize(this);
 }
Ejemplo n.º 2
0
        //-----------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!");
            }
        }