J
james
When I compile and run this code outside of Visual Studio no exception
is reported to the console and the program continues to run.
class Program
{
static void Main(string[] args)
{
System.Timers.Timer t = new System.Timers.Timer(10);
t.Elapsed += delegate { throw new Exception("Kaboom"); };
t.Start();
Console.ReadLine();
}
}
Any ideas?
Thanks,
James
is reported to the console and the program continues to run.
class Program
{
static void Main(string[] args)
{
System.Timers.Timer t = new System.Timers.Timer(10);
t.Elapsed += delegate { throw new Exception("Kaboom"); };
t.Start();
Console.ReadLine();
}
}
Any ideas?
Thanks,
James