--- dao/DaoMqPump2/MQFilter/FilterMainProgram.cs 2014/05/16 17:57:08 2162 +++ dao/DaoMqPump2/MQFilter/FilterMainProgram.cs 2014/05/20 20:00:10 2178 @@ -10,6 +10,7 @@ using System.Runtime.InteropServices; using DaoCommon; +using IBM.WMQ; namespace MQFilter @@ -19,13 +20,14 @@ static void Main(string[] args) { - if (args.Length == 1) + + if (args.Length == 1) { if (args[0] == "--debug") - { + { try { - + FilterController controller = FilterController.getInstance(); @@ -37,16 +39,18 @@ } catch (Exception e) { + Console.WriteLine("Error: " + e.Message); + Console.WriteLine(e.StackTrace); } - + Console.WriteLine("Press any key to continue"); Console.ReadKey(); //wait for user input - } + } else if (args[0] == "/i" || args[0] == "/u") { @@ -59,7 +63,7 @@ { undo = true; } - MyServiceInstaller.DoInstall(undo, new string[] { }); + MyServiceInstaller.DoInstall(undo, new string[] { }); } else {