Bug 548810

Summary: Index out of bounds scanning text file.
Product: [Mono] MonoDevelop Reporter: Alan McGovern <amcgovern>
Component: C BindingAssignee: Mitchell Wheeler <mitchell.wheeler>
Status: RESOLVED DUPLICATE QA Contact: MD Bugs <monodevelop-bugs>
Severity: Normal    
Priority: P5 - None CC: taktaktaktaktaktaktaktaktaktak
Version: SVN   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alan McGovern 2009-10-21 15:37:27 UTC
Got this in my term when opening a file. Not sure what causes it though:

ERROR [2009-10-21 16:35:22Z]: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
  at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00219] in /home/alan/Projects/mcs/class/corlib/System/Array.cs:1003 
  at System.Array.Copy (System.Array sourceArray, System.Array destinationArray, Int32 length) [0x00022] in /home/alan/Projects/mcs/class/corlib/System/Array.cs:920 
  at System.Collections.Generic.List`1[CBinding.Parser.Function].ToArray () [0x00000] in <filename unknown>:0 
  at CBinding.Parser.FileInformation.InstanceMembers () [0x00006] in /home/alan/Projects/monodevelop/main/src/addins/CBinding/Parser/ProjectInformation.cs:126 
  at CBinding.Parser.CDocumentParser.Parse (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String content) [0x00114] in /home/alan/Projects/monodevelop/main/src/addins/CBinding/Parser/CDocumentParser.cs:81 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.DoParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String fileContent) [0x0007b] in /home/alan/Projects/monodevelop/main/src/core/MonoDevelop.Projects/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:989 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.ParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, MonoDevelop.Projects.Dom.Parser.ContentDelegate getContent) [0x00013] in /home/alan/Projects/monodevelop/main/src/core/MonoDevelop.Projects/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:326 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.ParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName) [0x00000] in /home/alan/Projects/monodevelop/main/src/core/MonoDevelop.Projects/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:319 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.GetParsedDocument (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName) [0x00022] in /home/alan/Projects/monodevelop/main/src/core/MonoDevelop.Projects/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:340 
  at MonoDevelop.SourceEditor.SourceEditorView.Load (System.String fileName, System.String encoding) [0x000bf] in /home/alan/Projects/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:305 
  at MonoDevelop.SourceEditor.SourceEditorView.Load (System.String fileName) [0x00000] in /home/alan/Projects/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:275 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x00104] in /home/alan/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:992
Comment 1 Levi Bard 2009-11-06 19:18:34 UTC
Marking as duplicate.

*** This bug has been marked as a duplicate of bug 544578 ***