MediaPortal Forums HTPC/MediaCenter

Sponsored Ads

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Quality Assurance (Bugreports) » Archive » Bug Reports » The old Bugreport Forum

The old Bugreport Forum Post bugs you found here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2006-05-07, 19:07   #1 (permalink)
Portal Member
 
Join Date: Mar 2006
Location: The Netherlands
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default Setting Value error in Config.cs of WebEPG-conf

How to reproduce: The values of linked page are 0 and 0. Then you change the minimum into 23, the max will change to 23 as well. Then you change the min to 18 and you'll leave the page (to another station eg) an errors pops up telling zero is not valid (the value should lie between minimum and maximum).

This is the error in Dutch:
System.ArgumentOutOfRangeException: De waarde van 0 is niet geldig voor Value. Value moet tussen 'Minimum' en 'Maximum' liggen.
Parameternaam: Value
bij System.Windows.Forms.NumericUpDown.set_Value(Decim al value)
bij WebEPG_conf.fChannels.DoEvent(Object source, EventArgs e)

This is the solution:

In the beginning of "private void DoEvent(Object source, EventArgs e)" the minimum is set: nEnd.Minimum = nStart.Value;

In the same event method there is the folowing part:
Code:
if (gInfo.Linked)
              {
                cbLinked.Checked = info.Linked;
                nStart.ReadOnly = !cbLinked.Checked;
                nEnd.ReadOnly = !cbLinked.Checked;
                nStart.Value = info.linkStart;
                nEnd.Value = info.linkEnd;
              }
If you change this into the folowing code, the problem should be solved.

Code:
              if (gInfo.Linked)
              {
                cbLinked.Checked = info.Linked;
                nStart.ReadOnly = !cbLinked.Checked;
                nEnd.ReadOnly = !cbLinked.Checked;
                nStart.Value = info.linkStart;
                if (info.linkEnd < nEnd.Minimum)
                { nEnd.Value = nEnd.Minimum; }
                else
                { nEnd.Value = info.linkEnd; }
              }
Frank
bergh is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any idea why WebEPG is putting the wrong date in tvguide.xml koach MediaPortal 1 Talk 3 2006-11-06 23:36
Gaps in displayed EPG from WebEPG and OzTiVo (Australia) Taipan fixed 0.2.0.0 bugs 13 2006-10-19 05:48
WebEPG crash with 0.2+svn tomtom21000 WebEPG 14 2006-07-20 18:10
A problem creating spanish TDT grabber for WEBEPG pegial WebEPG 7 2006-06-04 12:14
Problems with Webepg The_Stig WebEPG 23 2006-01-17 20:23


All times are GMT +1. The time now is 16:09.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Integrated by BBpixel ©2004-2008, jvbPlugin
Protected by Akismet Blog with WordPress