[Cocoa-sharp] use samples provided by the cocoa-sharp-0.9.1 tarball
Ipacs Péter
peter at ipacs.hu
Tue Jun 19 10:27:27 EDT 2007
Hi there,
I've downloaded the cocoa-sharp-0.9.1 tarball and found the samples dir.
I've tried to build those samples but it seems I'm doing something wrong.
That's how I build the stuff:
mcs -pkg:cocoa-sharp -r:System.Drawing -out:ViewSample.exe ViewSample.cs
macpack -m:2 -n:View -o:. -a:ViewSample.exe -r:View.nib
After I execute the View.app I got an empty black box.
If I run the ViewSample.exe I got a stack trace(see below).
Could you help me out what's wrong here?
Thanks,
P
[2007-09-19 04:06:35] Handling a mach exception.
Stacktrace:
at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux (intptr,intptr,intptr&)
<0x00004>
at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux (intptr,intptr,intptr&)
<0xffffffff>
at System.Drawing.Graphics.FromXDrawable (intptr,intptr) <0x00021>
at System.Drawing.Graphics.FromHwnd (intptr) <0x00186>
at CocoaSharp.Samples.SimpleView.Draw (Cocoa.Rect) <0x00071>
at (wrapper runtime-invoke)
CocoaSharp.Samples.SimpleView.runtime_invoke_void_Rect(object,intptr,intptr,intptr)
<0xffffffff>
at (wrapper managed-to-native)
System.Reflection.MonoMethod.InternalInvoke(object,object[]) <0x00004>
at (wrapper managed-to-native)
System.Reflection.MonoMethod.InternalInvoke(object,object[])
<0xffffffff>
at System.Reflection.MonoMethod.Invoke (object,
System.Reflection.BindingFlags,System.Reflection.Binder,object[],
System.Globalization.CultureInfo) <0x000ab>
at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,
System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier
[],System.Globalization.CultureInfo,string[]) <0x0045c>
at System.Type.InvokeMember (string,System.Reflection.BindingFlags,
System.Reflection.Binder,object,object[]) <0x00029>
at Cocoa.Native.InvokeMethod (Cocoa.Object,string,object[]) <0x00058>
at Cocoa.Native.ImplementMethod (intptr,intptr,Cocoa.StackPadding)
<0x0087c>
at (wrapper native-to-managed) Cocoa.Native.ImplementMethod(intptr,intptr,
Cocoa.StackPadding) <0xffffffff>
at (wrapper managed-to-native)
System.Boolean_System.IntPtr_System.IntPtr_System.IntPtr_System.IntPtr_System.IntPtr.objc_msgSend(intptr,intptr,intptr,intptr,intptr)
<0x00004>
at (wrapper managed-to-native)
System.Boolean_System.IntPtr_System.IntPtr_System.IntPtr_System.IntPtr_System.IntPtr.objc_msgSend(intptr,intptr,intptr,intptr,intptr)
<0xffffffff>
at (wrapper runtime-invoke)
System.Object.runtime_invoke_bool_intptr_intptr_intptr_intptr_intptr(object,intptr,intptr,intptr)
<0xffffffff>
at (wrapper managed-to-native)
System.Reflection.MonoMethod.InternalInvoke(object,object[]) <0x00004>
at (wrapper managed-to-native)
System.Reflection.MonoMethod.InternalInvoke(object,object[])
<0xffffffff>
at System.Reflection.MonoMethod.Invoke (object,
System.Reflection.BindingFlags,System.Reflection.Binder,object[],
System.Globalization.CultureInfo) <0x000ab>
at System.MonoType.InvokeMember (string,System.Reflection.BindingFlags,
System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier
[],System.Globalization.CultureInfo,string[]) <0x0045c>
at System.Type.InvokeMember (string,System.Reflection.BindingFlags,
System.Reflection.Binder,object,object[]) <0x00029>
at Cocoa.ObjCMessaging.objc_msgSend (intptr,string,System.Type,object[])
<0x0059d>
at Cocoa.Bundle.LoadNib (string) <0x00208>
at Cocoa.Application.LoadNib (string) <0x00049>
at CocoaSharp.Samples.OpenGLViewSample.Main (string[]) <0x00017>
at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/cocoa-sharp/attachments/20070619/e3406030/attachment.html
More information about the Cocoa-sharp
mailing list