public void Free()
 {
     if (this.lib != null)
     {
         this.lib.Dispose();
         this.lib = null;
     }
 }
        private void Initialize()
        {
            if (IsModuleLoaded("AquesTalk"))
            {
                return;
            }

            this.lib = new UnmanagedLibrary(DllName);
        }
Esempio n. 3
0
        public void Free()
        {
            if (this.lib != null)
            {
                this.lib.Dispose();
                this.lib = null;
            }

            if (File.Exists(DllName))
            {
                File.Delete(DllName);
            }
        }
Esempio n. 4
0
        private void Initialize()
        {
            if (IsModuleLoaded("AquesTalk"))
            {
                return;
            }

            if (!File.Exists(DllName))
            {
                File.WriteAllBytes(DllName, Resources.AquesTalk);
            }

            this.lib = new UnmanagedLibrary(DllName);
        }