How to quit mono gracefully when Mac OS X 10.5.x restarts

View: New views
1 Messages — Rating Filter:   Alert me  

How to quit mono gracefully when Mac OS X 10.5.x restarts

by d_v :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to get my C# 2.0 winform or console application to run on mono and when a user restarts the Mac or shuts down, my application will automatically shutdown as well as mono.  I am developing on Windows and using VS 2005.NET

The win form works fine on Mac but Mac hangs when trying to restart and after about a minute Mac tells me "Logout has timed out because the application mono failed to quit.... " and I have to do a manual force quit and select mono.

Are there any workarounds?  What are others doing until this bug is fixed.  This issue has been around since mono 2.0 I believe.
Can my app detect a Mac restart command and shut down my program manually or something?
Or can I change the order of applications that are set to quit automatically I think if mono is set to quit last, then my program will quit first and then mono should auto quit...

thanks for any tips.