[MonoDevelop] Problems using MD 2.2 Beta 2

Daniel Lidström dlidstrom at gmail.com
Tue Oct 13 16:28:00 EDT 2009


I created a console C# project. Then I first tried to compile but it  
failed:

Building: Console (Debug|iPhoneSimulator)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.4.2.3/bin/gmcs /noconfig  
"/out:/Users/daniel/Projects/iPhoneTest/Console/bin/Debug/Console.exe"  
"/r:System.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- / 
codepage:utf8 "/define:DEBUG"  /t:exe "/Users/daniel/Projects/ 
iPhoneTest/Console/Main.cs" "/Users/daniel/Projects/iPhoneTest/Console/ 
AssemblyInfo.cs"
Compilation failed: 1 error(s), 0 warnings

/Users/daniel/Projects/iPhoneTest/Console/Main.cs(9,33): error CS0234:  
The type or namespace name `WriteLine' does not exist in the namespace  
`Console'. Are you missing an assembly reference?


Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings


I then right-clicked the text "Console.WriteLine" and got an 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 (wrapper native-to-managed)  
GtkSharp.MenuPositionFuncWrapper.NativeCallback  
(intptr,int&,int&,byte,intptr) <0x00050>
at (wrapper managed-to-native) Gtk.Menu.gtk_menu_popup  
(intptr 
,intptr,intptr,GtkSharp.MenuPositionFuncNative,intptr,uint,uint)  
<0x000ec>
at Gtk.Menu.Popup  
(Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,uint,uint) <0x000d4>
at MonoDevelop.SourceEditor.ExtensibleTextEditor.ShowPopup ()  
[0x00055] in /Users/michael/Mono/monodevelop/main/src/addins/ 
MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ 
ExtensibleTextEditor.cs:709
at MonoDevelop.SourceEditor.ExtensibleTextEditor.OnPopupMenu  
(object,Gtk.ButtonPressEventArgs) [0x000a1] in /Users/michael/Mono/ 
monodevelop/main/src/addins/MonoDevelop.SourceEditor2/ 
MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:185
at (wrapper managed-to-native)  
System.Reflection.MonoMethod.InternalInvoke  
(object,object[],System.Exception&) <0x000e0>
at System.Reflection.MonoMethod.Invoke  
(object 
,System 
.Reflection 
.BindingFlags 
,System.Reflection.Binder,object[],System.Globalization.CultureInfo)  
<0x0010c>

   --- 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]
   at System.Reflection.MethodBase.Invoke (System.Object obj,  
System.Object[] parameters) [0x00000]
   at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
   at System.MulticastDelegate.DynamicInvokeImpl (System.Object[]  
args) [0x00000]
   at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
   at GLib.Signal.ClosureInvokedCB (System.Object o,  
GLib.ClosureInvokedArgs args) [0x00000]
   at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
   at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr  
return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr  
invocation_hint, IntPtr marshal_data) [0x00000]

I am using mono framework 2.4.2.3_6.macos10.novell.ppc. Hope this helps.

/Daniel



More information about the Monodevelop-list mailing list