예제 #1
0
        /// <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();
        }
예제 #2
0
 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();
 }