#421 Index out of bounds exception on clicking a feed

closed
7
2012-09-23
2005-03-13
Dare Obasanjo
No

I got the following exception when clicking on the feed
my blog.

Exception Information
System.ArgumentOutOfRangeException: Specified
argument was out of the range of valid values.
Parameter name: '2' is not a valid value for 'index'.
at
System.Windows.Forms.ColumnHeaderCollection.get_It
em(Int32 index)
at
System.Windows.Forms.ThListView.ThreadedListViewC
olumnHeaderCollection.get_Item(Int32 displayIndex) in
C:\Documents and Settings\dareo\My Documents\RSS
Bandit [SourceForge]
\CurrentWork\Source\RssBandit\WinGui\Controls\ThList
View\ThreadedListViewColumnHeaderCollection.cs:line
53
at
System.Windows.Forms.ThListView.ThreadedListView.L
istViewLayoutFromCurrentSettings() in c:\documents
and settings\dareo\my documents\rss bandit
[sourceforge]
\currentwork\source\rssbandit\wingui\controls\thlistview\t
hreadedlistview.cs:line 664
at
System.Windows.Forms.ThListView.ThreadedListView.
CheckForLayoutModifications() in c:\documents and
settings\dareo\my documents\rss bandit [sourceforge]
\currentwork\source\rssbandit\wingui\controls\thlistview\t
hreadedlistview.cs:line 645
at
RssBandit.WinGui.Forms.WinGuiMain.SaveUIConfigurati
on(Boolean forceFlush) in c:\documents and
settings\dareo\my documents\rss bandit [sourceforge]
\currentwork\source\rssbandit\wingui\forms\winguimain.c
s:line 4907

The following is the listview-layout element for that feed.

<listview-layout><?xml version="1.0" encoding="utf-
16"?>
<ListViewLayout
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance">
<SortByColumn>Title</SortByColumn>
<SortOrder>Descending</SortOrder>
<ColumnList>
<string>Title</string>
<string>Title</string>
<string>Title</string>
<string>Title</string>
</ColumnList>
<ColumnWidthList>
<int>341</int>
<int>341</int>
<int>341</int>
<int>341</int>
</ColumnWidthList>
</ListViewLayout></listview-layout>

Discussion

  • Logged In: YES
    user_id=714452

    How comes you have four "Title" columns there?

     
  • Dare Obasanjo
    Dare Obasanjo
    2005-03-13

    Logged In: YES
    user_id=24549

    I don't know how this got corrupted. I downloaded feeds after
    uploading from an old build at work and had these problems.

     
  • Logged In: YES
    user_id=714452

    added code to make it more safe against deserialization
    failures and index out of bounds.