/// <summary> /// Gibt alle verwendeten Ressourcen wieder frei. /// </summary> private static void Dispose() { _DvbAdapter.Dispose(); Marshal.FreeHGlobal(_CopyrightString); Marshal.FreeHGlobal(_TypeString); Marshal.FreeHGlobal(_NameString); Marshal.FreeHGlobal(_VersionString); Marshal.FreeHGlobal(_NativeTsCallback); Globals.Dispose(); }
public static void OnExit(IntPtr MDInstance, IntPtr MDWnd, int Log_Set) { LogProvider.Add(DebugLevel.Info, cLogSection, Message.MdapiUnload); try { _IsStopping = true; _DvbAdapter.Tune(-1, -1, -1, -1); _DvbAdapter.Dispose(); } catch (Exception ex) { LogProvider.Exception(cLogSection, Message.MdapiUnloadFailed, ex); } Globals.Dispose(); }