[Mono-dev] macpack question

Frank Bergmann fbergman at kgi.edu
Fri Oct 20 14:17:08 EDT 2006


Hi, 

I'm not sure whether this is the right list to ask about macpack ... anyway
here it goes:

I have a winforms app, with two references that I would like to bundle in an
app-bundle to make it more intuitive to run the app on OS X 10.4.x. I invoke
macpack with:

macpack -n:AppName -a:executableAssembly -r:reference1 -r:reference2
-m:winforms

when I execute the app-bundle from Finder, I see the following two messages
on the Console.log:

mono: /usr/bin/mono: cannot execute binary file
/Users/<name/path/appbundle>/Contents/MacOS/<exetuable>: line 42:
./bin/<AppName>: No such file or directory

If I start the AppBundle from the same Terminal/Directory from where I
created it: I get the following output in Console.log:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object at <execAssembly>.Form1.Main(System.String[]
args) [0x00000]

If I start the AppBundle from an X11 shell I get the stacktrace below this
message. 

I have been trying the other options x11/cocoa also with little success ... 

This problem existed in all mono-versions I tried (including 1.1.18_0) 

Thanks for your help
Frank

P.S: ... maybe I should point out that the app is running happily when
executed with mono <appName> from a X11-shell


=== snip === 

Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using
built-in colorscheme

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Stacktrace:

  at (wrapper managed-to-native)
System.Drawing.Carbon.CreateCGContextForPort (intptr,intptr&) <0xffffffff>
  at (wrapper managed-to-native)
System.Drawing.Carbon.CreateCGContextForPort (intptr,intptr&) <0x00090>
  at System.Drawing.Carbon.GetCGContextForView (intptr) <0x00098>
  at System.Drawing.Graphics.FromHwnd (intptr) <0x000f8>
  at System.Windows.Forms.XplatUIX11.PaintEventStart (intptr,bool) <0x000c4>
  at System.Windows.Forms.XplatUI.PaintEventStart (intptr,bool) <0x00038>
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
<0x00404>
  at System.Windows.Forms.ScrollBar.WndProc (System.Windows.Forms.Message&)
<0x0001c>
  at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00030>
  at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0022c>
  at System.Windows.Forms.XplatUIX11.SendMessage
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x001d8>
  at System.Windows.Forms.XplatUIX11.UpdateWindow (intptr) <0x00088>
  at System.Windows.Forms.XplatUI.UpdateWindow (intptr) <0x00030>
  at System.Windows.Forms.Control.Refresh () <0x00054>
  at System.Windows.Forms.ScrollBar.OnResizeSB (object,System.EventArgs)
<0x0007c>
  at (wrapper delegate-invoke)
System.MulticastDelegate.invoke_void_object_EventArgs
(object,System.EventArgs) <0x00078>
  at System.Windows.Forms.Control.OnResize (System.EventArgs) <0x00040>
  at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs) <0x00038>
  at System.Windows.Forms.Control.UpdateBounds (int,int,int,int,int,int)
<0x00208>
  at System.Windows.Forms.Control.UpdateBounds () <0x001d8>
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
<0x003c4>
  at System.Windows.Forms.ScrollBar.WndProc (System.Windows.Forms.Message&)
<0x0001c>
  at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00030>
  at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0022c>
  at System.Windows.Forms.XplatUIX11.SendMessage
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x001d8>
  at System.Windows.Forms.XplatUIX11.SetWindowPos (intptr,int,int,int,int)
<0x00178>
  at System.Windows.Forms.XplatUI.SetWindowPos (intptr,int,int,int,int)
<0x00050>
  at System.Windows.Forms.Control.SetBoundsCore
(int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x00060>
  at System.Windows.Forms.Control.SetBounds
(int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x000d8>
  at System.Windows.Forms.Control.set_Bounds (System.Drawing.Rectangle)
<0x000dc>
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control.set_Bounds (System.Drawing.Rectangle) <0x000dc>
  at System.Windows.Forms.TextBoxBase.PositionControls () <0x0081c>
  at System.Windows.Forms.TextBoxBase.CalculateScrollBars () <0x003d4>
  at System.Windows.Forms.TextBox.set_ScrollBars
(System.Windows.Forms.ScrollBars) <0x00034>
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.TextBox.set_ScrollBars
(System.Windows.Forms.ScrollBars) <0x00084>
  at <execassembly>.Form1.InitializeComponent () <0x01a48>
  at <execassembly>.Form1..ctor () <0x0003c>
  at (wrapper remoting-invoke-with-check) JarnacLite.Form1..ctor ()
<0x00048>
  at <execassembly>.Form1.Main (string[]) <0x0004c>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0x00064>
/Users/<User/path/appbundle>/Contents/MacOS/<executable>: line 43: 20070
Abort trap              "./bin/$APP_NAME" "$ASSEMBLY"

=== snip ===





More information about the Mono-devel-list mailing list