Beispiel #1
0
 private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
 {
     try
     {
         string str = (e.get_ExceptionObject().Message + e.get_ExceptionObject().StackTrace).Replace('"', '\'').Replace("\r\n", @"\n");
         HtmlPage.get_Window().Eval("throw new Error(\"Unhandled Error in Silverlight Application " + str + "\");");
     }
     catch (Exception)
     {
     }
 }
Beispiel #2
0
 private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
 {
     if (Debugger.get_IsAttached())
     {
         EasyTracker.GetTracker().SendException(e.get_ExceptionObject().get_Message(), false);
         Debugger.Break();
     }
 }