TVengine 3 config and OK button (1 Viewer)

misterd

Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    I don't have this issue here on Windows XP.

    chemelli: It would be very helpful for the developers if you could provide the whole error message including a stackstrace. There a developer can see the section which is causing the exception. For logging the stacktrace add the following line in the catch block:
    Code:
                Log.Write("SaveSectionSettings - Stacktace " + ex.StackTrace); }

    MisterD
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    51
    Milano, Italy
    Home Country
    Italy Italy
    Roy, there is nothing in the log. The excepion is not handled...

    I modified the source code to add a try/catch and found the problematic part of the servertv but I'm not able to go on further and fix the issue.

    I just start setuptv.exe, click ok, and exit.

    Find tv.log attached.

    Simone
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    The error occurs in the powerscheduler plugin settings. You should check that everywhere is a numeric where a numeric value is expected.
    I think you have entered a wrong value for the epg wakeup time.

    MisterD
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    51
    Milano, Italy
    Home Country
    Italy Italy
    I did nothing but I will double check...

    Simone


    EDIT: I have the powerscheduler plugin disable!

    misterD, you are right!

    The issue is the SaveSettings of the PowerScheduler plugin. IT is REGIONAL SETTINGS dependant.
    Infact at lines 206,7,8 there is:

    Code:
    string[] time = maskedTextBox1.Text.Split(':');
    
    newcfg.Hour = Convert.ToInt32(time[0]);
    
    newcfg.Minutes = Convert.ToInt32(time[1]);

    but my string[] time is "00.00" so the time[0]="00.00" and time[1] is trowing the exception because out of range !!!

    If I change the ":" on line 206 for the split function to "." everything works fine and I'm able 10 times out of ten to close properly SetupTV.exe.

    I'm just checking for a function returning this char from the system settings.

    Simone

    BTW, why is this settings saved if the plugin is even not enabled ?

    Fixed.

    The code of line 206 of PowerSchedulerMasterSetup.cs now looks like:

    Code:
    string[] time = maskedTextBox1.Text.Split(System.Globalization.DateTimeFormatInfo.CurrentInfo.TimeSeparator[0]);

    Simone
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    51
    Milano, Italy
    Home Country
    Italy Italy
    infinityloop dman_LFC already added this to the code build 16350. Thanks anyway.

    Simone
     

    Users who are viewing this thread

    Top Bottom