Bug 5484 - Exception thrown when trying to add event to a control in the designer (MD 3.0.2)
Summary: Exception thrown when trying to add event to a control in the designer (MD 3....
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-06-03 12:20 UTC by Simon Justesen
Modified: 2012-06-20 15:49 UTC (History)
1 user (show)

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:

Description Simon Justesen 2012-06-03 12:20:58 UTC
Getting this error when doubleclicking to add an event to a control via the designer:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The method or operation is not implemented.
   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.GetNewMethodPosition(IEnumerable`1 points, IUnresolvedTypeDefinition cls)

   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.GetSuitableInsertionPoint(IEnumerable`1 points, IUnresolvedTypeDefinition cls, IUnresolvedMember member)

   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.AddNewMember(ITypeDefinition type, IUnresolvedTypeDefinition part, IUnresolvedMember newMember, Boolean implementExplicit)

   at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.BindSignal(Signal signal)

   at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderView.OnSignalAdded(Object sender, ComponentSignalEventArgs args)

   at Stetic.WidgetDesigner.OnSignalAdded(Object sender, ComponentSignalEventArgs args)

   at Stetic.Project.<>c__DisplayClass12.<NotifySignalAdded>b__11(Object , EventArgs )

   at Stetic.GuiDispatch.InvokeSync(EventHandler h)

   at Stetic.Project.NotifySignalAdded(Object obj, String name, Signal signal)

   at Stetic.ProjectBackend.Stetic.IProject.NotifySignalAdded(SignalEventArgs args)

   at Stetic.ObjectWrapper.OnSignalAdded(SignalEventArgs args)

   at Stetic.SignalCollection.OnInsertComplete(Int32 index, Object value)

   at System.Collections.CollectionBase.System.Collections.IList.Add(Object value)

   at Stetic.SignalCollection.Add(Signal signal)

   at Stetic.SignalsEditorBackend.AddHandler(TreeIter iter, String name)

   at Stetic.SignalsEditorBackend.OnRowActivated(Object sender, RowActivatedArgs args)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
Comment 1 Simon Justesen 2012-06-03 12:54:26 UTC
Using latest GTK# 2.12.10 from Monodevelop-site
Comment 2 Simon Justesen 2012-06-20 15:49:11 UTC
This bug seems to be resolved in Monodevelop I can assign events to controls from the designer.