Skip to content

Instantly share code, notes, and snippets.

@colomon
Created October 11, 2011 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/1278289 to your computer and use it in GitHub Desktop.
Save colomon/1278289 to your computer and use it in GitHub Desktop.
Marshaling toggled signal
Exception in Gtk# callback delegate
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Niecza.CLRWrapperProvider.CoerceArgument (System.Object& clr, System.Type ty, Niecza.Variable var) [0x00000] in <filename unknown>:0
at Niecza.OverloadCandidate.Admissable (Niecza.Variable[] pos, Niecza.VarHash named) [0x00000] in <filename unknown>:0
at Niecza.CandidateSet.DoDispatch (Niecza.Variable[] pos, Niecza.VarHash named) [0x00000] in <filename unknown>:0
at Niecza.CLRWrapperProvider+<BindGroup>c__AnonStoreyA.<>m__B (Niecza.Frame th) [0x00000] in <filename unknown>:0
at Niecza.Kernel.RunCore (Niecza.Frame& cur) [0x00000] in <filename unknown>:0
at line 0 (ExitRunloop @ 0)
at /Users/colomon/tools/TuneReminder/bin/practice.pl line 73 (MAIN DoneToggled @ 3)
at line 0 (ExitRunloop @ 0)
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
at Gtk.Application.gtk_main()
at Gtk.Application.Run()
at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters)
at Niecza.OverloadCandidate.Invoke(System.Object obj, Niecza.Variable[] pos, Niecza.VarHash named)
at Niecza.CLRWrapperProvider+<BindGroup>c__AnonStoreyA.<>m__B(Niecza.Frame th)
at Niecza.Kernel.RunCore(Niecza.Frame ByRef cur)
at Niecza.Kernel.RunInferior(Niecza.Frame f)
at Niecza.Kernel.BootModule(System.String name, Niecza.DynBlockDelegate dgt)
at Niecza.Kernel.RunLoop(System.String main_unit, System.String[] args, Niecza.DynBlockDelegate boot)
at Niecza.CLRBackend.CLRBackend.RunMain(System.String dir, System.String contents, System.String[] argv)
at Niecza.CLRBackend.DowncallReceiver.Call(System.AppDomain up, System.String[] args)
at Niecza.CLRBackend.DowncallReceiver.get_Item(System.Object i)
at Niecza.Downcaller.DownCall(Niecza.Variable cb, Niecza.Variable list)
at NieczaBackendDotnet.C9_downcall(Niecza.Frame )
at Niecza.Kernel.RunCore(Niecza.Frame ByRef cur)
at Niecza.Kernel.RunInferior(Niecza.Frame f)
at Niecza.Kernel.BootModule(System.String name, Niecza.DynBlockDelegate dgt)
at Niecza.Kernel.RunLoop(System.String main_unit, System.String[] args, Niecza.DynBlockDelegate boot)
at MAIN.Main(System.String[] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment