Author: miguel
Date: 2008-02-12 11:57:58 -0500 (Tue, 12 Feb 2008)
New Revision: 95529

Modified:
   trunk/mono-curses/gui.cs
Log:
Add helper

Modified: trunk/mono-curses/gui.cs
===================================================================
--- trunk/mono-curses/gui.cs    2008-02-12 16:56:20 UTC (rev 95528)
+++ trunk/mono-curses/gui.cs    2008-02-12 16:57:58 UTC (rev 95529)
@@ -1775,9 +1775,14 @@
                public static void Init (bool disable_color)
                {
                        empty_container = new Container (0, 0, 
Application.Cols, Application.Lines);
-                       
-                       Curses.initscr ();
 
+                       try {
+                               Curses.initscr ();
+                       } catch (Exception e){
+                               Console.WriteLine ("Curses failed to 
initialize, the exception is: " + e);
+                               throw new Exception ("Application.Init failed");
+                       }
+
                        if (inited)
                                return;
                        inited = true;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to