[Mono-list] How do you use mkbundle2 for Mac OS X successfully?

d_v dan.vandermolen at figpsoft.com
Fri Feb 19 09:26:46 EST 2010

1)      a) When I double-click the output file of mkbundle, it auto opens a
Terminal window (It is Applications/Utilities/Terminal.  About Terminal
shows it is version 2.0.2) and outputs the following lines:

Last login: Wed Feb 17 12:42:09 on ttys001

$ /Program\ Files/My\ Software/MacFormShow/testDynStatic ; exit;


After I close the WinForm it does not auto quit Terminal but outputs the



[Process completed]


Do you know of another/better way to launch a bundled application?



2)      What do you mean by "The unbundled WinForms app will hang just like
that"   I did bundle it with mkbundle so I thought it shouldn't hang (was
hoping anyway).

I am hoping someone has sample code or a link for this and in c# would be
really nice.

a.       Do you have any more info on how to use the "Winform support

b.      Do you have an more info on how to "handle shutdown Apple Event
manually (see AEInstallEventHandler(), kAEQuitApplication).



3)      You are correct I don't care about the warnings if the application
runs and quits properly.


Thanks for all your help.



From: Alex Shulgin [via Software]
[mailto:ml-node+4597707-1155441064-165460 at n2.nabble.com] 
Sent: February-19-10 08:13
To: d_v
Subject: Re: How do you use mkbundle2 for Mac OS X successfully?


d_v wrote: 
> I am having difficulty running bundles and using mkbundle. 
> How do I: 
> 1) Not see the Terminal window when I double-click the mkbundle 
> output/bundled file: test3 

I'm not sure what are you talking about as I never experienced this. 
Does it happen only when you run bundled app?  Does it output anything 
to the window?  BTW, could it probably be X11 window, not one from 
Applications -> Utilities -> Terminal? 

> 2) When I Launch the mkbundle output file in Mac OS X and the logout of
> Mac with the mono application still running (and terminal window open),
> Mac will hang and the application will not quit and I can't logout until I

> 'force quit' mono. However while it is hanging I can either quit the 
> terminal window or the application to close both windows (term and app)
> then the logout works. 

This is unrelated to use of mkbundle.  The unbundled WinForms app will 
hang just like that.  To handle this you'll need support from WinForms 
or handle shutdown Apple Event manually (see AEInstallEventHandler(), 

> 3) Sucessfully use mkbundle with the dynamic option and get no warnings. 
> (please see below) 

But are you really bothered by these warnings? 


Mono-list maillist  -  [hidden email]


View message @
To start a new topic under Mono - General, email
ml-node+1723-232802049-165460 at n2.nabble.com 
To unsubscribe from Mono - General, click
< (link removed) 
uQGZpZ3Bzb2Z0LmNvbXwxNzIzfC0xNjAwNjIwMDQx>  here. 


View this message in context: http://n2.nabble.com/How-do-you-use-mkbundle2-for-Mac-OS-X-successfully-tp4593621p4598090.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list