Esempio n. 1
0
 public void Dispose()
 {
     //Release();
     if (_dll != null)
     {
         //_dll.BeforeRelease();
         _dll.Dispose();
         _dll = null;
     }
     GC.SuppressFinalize(this);
 }
Esempio n. 2
0
        //-----------Public functions----------------------------------------------

        public CoreLib()
        {
            try
            {
                _dll = new CoreDll();
            }
            catch (Exception ex)
            {
                throw new Exception("Can't load core library! " + Environment.NewLine + ex.Message);
            }
            //_dll.Initialize();
            //_handle = _dll.adCreate();

            /*if (Version.Compatible(GetVersion(CoreDll.VersionType.AntiDupl)))
             * {
             *  _handle = _dll.adCreate();
             * }
             * else
             *  throw new Exception("Incompatible core library version!");*/
        }