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);
        }
Beispiel #3
0
        public void Free()
        {
            if (this.lib != null)
            {
                this.lib.Dispose();
                this.lib = null;
            }

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

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

            this.lib = new UnmanagedLibrary(DllName);
        }