[mapserver-commits] r7216 - trunk/mapserver/mapscript/csharp/examples

svn at osgeo.org svn at osgeo.org
Wed Dec 26 17:38:17 EST 2007


Author: tamas
Date: 2007-12-26 17:38:17 -0500 (Wed, 26 Dec 2007)
New Revision: 7216

Modified:
   trunk/mapserver/mapscript/csharp/examples/drawmap.cs
   trunk/mapserver/mapscript/csharp/examples/drawquery.cs
Log:
Early initialization of System.Console to prevent from a crash on Windows/Mono

Modified: trunk/mapserver/mapscript/csharp/examples/drawmap.cs
===================================================================
--- trunk/mapserver/mapscript/csharp/examples/drawmap.cs	2007-12-26 22:35:56 UTC (rev 7215)
+++ trunk/mapserver/mapscript/csharp/examples/drawmap.cs	2007-12-26 22:38:17 UTC (rev 7216)
@@ -21,7 +21,8 @@
 		  
   public static void Main(string[] args)
   {
-    if (args.Length < 2) usage();
+    Console.WriteLine("");
+	if (args.Length < 2) usage();
     
 	mapObj m_obj = new mapObj(args[0]);
 

Modified: trunk/mapserver/mapscript/csharp/examples/drawquery.cs
===================================================================
--- trunk/mapserver/mapscript/csharp/examples/drawquery.cs	2007-12-26 22:35:56 UTC (rev 7215)
+++ trunk/mapserver/mapscript/csharp/examples/drawquery.cs	2007-12-26 22:38:17 UTC (rev 7216)
@@ -21,7 +21,8 @@
     		  
     public static void Main(string[] args)
     {
-        if (args.Length < 3 || args.Length > 4) usage();
+        Console.WriteLine("");
+		if (args.Length < 3 || args.Length > 4) usage();
         
         bool ZoomToResults = (args.Length == 4 && args[3] == "-zoom");
 



More information about the mapserver-commits mailing list