[Mono-osx] How to have a running .NET 2.0 application quit automatically when user logs out
dan.vandermolen at figpsoft.com
Thu Jan 7 15:19:09 EST 2010
Would love to have some help on this.
Could I offer anyone an incentive?
> My .NET 2.0 application (compiled with VS 2005.net) has always worked well
> on Mono without too many changes. I have tried all the recent version of
> Mono including 2.6. I have two versions of the application; one is for
> testing so I like to have a GUI.
> 1. GUI: For testing I use a visible Windows.Form and I can use the program
> and close the window when done and the application closes. (to be
> Note: If I try to logout when this is running I get error: "Logout has
> timed out because the application mono failed to quit..."
> 2. Deployment: I run mostly the same code but do not open the
> Windows.Form. However if the program is running and I try to Logout of Mac
> OSX it hangs with the same error.
> Note: I am running a timer if that is a factor, and if running the GUI,
> the background thread does the work and the GUI thread updates the GUI
> display every 5 seconds based on timer.
> Here is how I run the application from the main unit:
> if (isDeploy) // if deploying then do not show form
> else // do show form
> sMsg = "Error creating Form.";
> frm1 = new MyForm.Form1();
> sMsg = "Error opening Form with call:
> if (frm1 != null) // is this necessary in a mono
> crash? It gave me weird errors?
> } // try catch
> I've tried everything I can think of.
View this message in context: http://old.nabble.com/How-to-have-a-running-.NET-2.0-application-quit-automatically-when-user-logs-out-tp26844444p27066354.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx