public static int Main(String []args) { Thread mv_Thread; String str = "Done"; UserExceptionThread ue = new UserExceptionThread(); for (int i = 0 ; i < 10; i++){ mv_Thread = new Thread(new ThreadStart(ue.runtest)); try { mv_Thread.Start(); } catch (Exception ){ Console.WriteLine("Exception was caught in main"); } } Console.WriteLine(str); return retVal; }
public static int Main(String [] args) { Thread mv_Thread; String str = "Done"; UserExceptionThread ue = new UserExceptionThread(); for (int i = 0; i < 10; i++) { mv_Thread = new Thread(new ThreadStart(ue.runtest)); try { mv_Thread.Start(); } catch (Exception) { Console.WriteLine("Exception was caught in main"); } } Console.WriteLine(str); return(retVal); }