Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-2547

Enhance GUI Log to find calls for GUI not coming from main thread

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.5.0
    • 1.4.0
    • MediaPortal 1
    • None
    • Operating System: Windows 8
      Platform: Intel

    Description

      Guzzi idea :
      Adding this in GUIWindow.cs in Loadskin() allow easily to find calls for GUI not coming from main thread.
      Could be in a "if debug" if we want to make sure it is not running in non debug mode ...


      h4. Additional Information
      // add thread check to log calls not running in main thread/GUI
            int iCurrentThread = Thread.CurrentThread.ManagedThreadId;
            if (iCurrentThread != 1)
            {
              Log.Error("LoadSkin: Running on thread <{0}> instead of main thread - StackTrace: '{1}'", iCurrentThread, Environment.StackTrace);
            }

      Attachments

        Activity

          People

            Guzzi Guzzi (Inactive)
            sebastiii sebastiii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: