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); }
public void Free() { if (this.lib != null) { this.lib.Dispose(); this.lib = null; } if (File.Exists(DllName)) { File.Delete(DllName); } }
private void Initialize() { if (IsModuleLoaded("AquesTalk")) { return; } if (!File.Exists(DllName)) { File.WriteAllBytes(DllName, Resources.AquesTalk); } this.lib = new UnmanagedLibrary(DllName); }