Example #1
0
        static void Main(string[] args)
        {
            try
            {
                SerialDump o = new SerialDump(args);

                o.Run();
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            try
            {
                if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0)
                {
                    Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]");
                    return;
                }

                using (SerialDump o = new SerialDump(args))
                {
                    o.Run();
                }
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }
Example #3
0
        static void Main( string[] args )
        {
            try
            {
                SerialDump o = new SerialDump( args );

                o.Run();
            }
            catch(ApplicationException)
            {
            }
            catch(Exception e)
            {
                Console.WriteLine( "{0}", e.ToString() );
            }
        }
Example #4
0
        static void Main( string[] args )
        {
            try
            {
                if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0)
                {
                    Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]");
                    return;
                }

                using (SerialDump o = new SerialDump(args))
                {
                    o.Run();
                }
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }