Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Consider the following error:
> Incorrect number or types of arguments
In Xamarin Studio's debugger, the following Monotouch code will cause this error when inspecting the value of instances of `Bar` (by mouse-overing, watches, locals, etc.)
public partial class AppDelegate : UIApplicationDelegate
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
var bar = new Bar();
return true; // <-- Put breakpoint here and mouseover "bar" when the breakpoint is hit
public struct Bar
private Foo foo1;
private Foo foo2; // <-- Comment out this line and the bug goes away
public override string ToString()
return "it does not matter what goes here";
public struct Foo
This makes debugging my custom value type very difficult, as it does not display the .ToString info when using the debugger.
Zoltan, Marek, any ideas?
This has to be either a runtime or compiler bug afaict.
Which sdb method throws this exception ?
The ObjectMirror method for invoking methods on the object.
Fixed in mono master 9c2e07499ec0cbd6ee94516a9aec539b0162862f.
Reassigning to the iOS and Android teams so they know to pull in this mono commit