[fixed] Pictures currentSlideIndex resetting to -1 [Mantis #4461] (2 Viewers)

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Sounds again like a thread accessing the GUI which is not GUI. Will add this info to mantis.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I can confirm the same and when i try to debug that the first time all label etc. are not null, the second time it's ok.
    Now why ?? :)
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Did not find the bin. Where is it? Sorry, next test can only be somewhere tomorrow, got to go.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Sounds again like a thread accessing the GUI which is not GUI. Will add this info to mantis.
    a bit offtopic, but maybe it is worth adding something like
    Code:
    	  // 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);
    	  }
    I used this in GUIWindow.cs in Loadskin() to easily 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 ...
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    I can not at the moment. Could someone trigger a build & post the link?

    Thanks!
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Ah - I guess you meant the latest build of 1.4.0 final? OK will get that one.

    UPDATE: OK That's not it. So please could someone build it for me to test? Thx again
     
    Last edited:

    Users who are viewing this thread

    Top Bottom