コード例 #1
0
ファイル: CoreLib.cs プロジェクト: heinrichI/ImageMetric
 public void Dispose()
 {
     //Release();
     if (_dll != null)
     {
         //_dll.BeforeRelease();
         _dll.Dispose();
         _dll = null;
     }
     GC.SuppressFinalize(this);
 }
コード例 #2
0
ファイル: CoreLib.cs プロジェクト: heinrichI/ImageMetric
        //-----------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!");*/
        }