using System; using System.Threading; public class Test { public static void Main() { int x; // If you remove this line it works fine x = 0; try { throw new ApplicationException(); } catch (ApplicationException) { try { } catch (Exception) { } } } }