这可能很简单,但我真的无法在Google上正确说出它。我有一个ArrayList保存每个线程的信息。每个线程都有自己的ID。所以,一开始: myList.add(theIdOfTheThread, new InfoForTheThread()); //Add new thread info at index theIdOfTheThread
而当我想信息: myList.get(myId);
我处理文件以及与每个节点线看起来像这样的链接列表: struct TextLine{
//The actual text
string text;
//The line number of the document
int line_num;
//A pointer to the next line
TextLine * next;
}
我很新,很缺乏经验。我已经从MSDN下载了一个WPF版本的俄罗斯方块来检查代码并尝试查看发生了什么,但程序中有错误,我不确定是什么导致它。异常的详细信息如下: System.IndexOutOfRangeException was unhandled
Message=Index was outside the bounds of the array.
Source=WPFTet