[MonoDevelop] Problems using MD 2.2 Beta 2

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Oct 13 18:27:36 EDT 2009

On Tue, Oct 13, 2009 at 4:28 PM, Daniel Lidström <dlidstrom at gmail.com> wrote:
> 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/ /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?

Is this the default code as created by the template, or have you
modified it? Also, why are you using the iPhoneSimulator platform for
your console project? For one thing, MonoTouch doesn't work on PPC.

> 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)
> I am using mono framework Hope this helps.

There seems to be a bug in
GtkSharp.MenuPositionFuncWrapper.NativeCallback on PPC. I think this
bug is filed.

Michael Hutchinson

More information about the Monodevelop-list mailing list