Bug 4645 - Hovering over the 'Length' property of an array causing an exception
Summary: Hovering over the 'Length' property of an array causing an exception
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 2.9.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-04-25 12:13 UTC by Eric Beisecker
Modified: 2012-04-26 10:58 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Eric Beisecker 2012-04-25 12:13:40 UTC
I'm getting an exception in the Application output window when I'm debugging a Console application in MonoDevelop and over over the 'Length' property of an array.

Sample Code.

var actionParams = new ReflectionParameterInfo[1];
actionParams.Length;


Exception Text.
System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at Mono.Debugging.Evaluation.ValueReference.GetChild (System.String name, Mono.Debugging.Client.EvaluationOptions options) [0x0005b] in /Users/builder/data/lanes/monodevelop-mac-master/5089ddff/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ValueReference.cs:255 
  at Mono.Debugging.Evaluation.EvaluatorVisitor.VisitMemberReferenceExpression (ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression memberReferenceExpression, System.Object data) [0x00013] in /Users/builder/data/lanes/monodevelop-mac-master/5089ddff/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:608 
  at ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression.AcceptVisitor (IAstVisitor visitor, System.Object data) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/5089ddff/source/monodevelop/main/contrib/NRefactory/Project/Src/Ast/Generated.cs:2840 
  at Mono.Debugging.Evaluation.NRefactoryEvaluator.Evaluate (Mono.Debugging.Evaluation.EvaluationContext ctx, System.String exp, System.Object expectedType, Boolean tryTypeOf) [0x00164] in /Users/builder/data/lanes/monodevelop-mac-master/5089ddff/source/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryEvaluator.cs:89 

Versions

MonoDevelop 2.9.5
Runtime:
	Mono 2.10.9 (tarball Tue Apr 17 18:59:12 EDT 2012)
	GTK 2.24.10
	GTK# (2.12.0.0)
Comment 1 Jeffrey Stedfast 2012-04-25 12:45:55 UTC
fixed in git master