OSDN Git Service

5
[psychlops/silverlight.git] / test5 / App.xaml.cs
index e091cde..eba91ad 100644 (file)
@@ -10,7 +10,7 @@ using System.Windows.Media;
 using System.Windows.Media.Animation;\r
 using System.Windows.Shapes;\r
 \r
-namespace PsychlopsSilverlight4test\r
+namespace PsychlopsSilverlight5test\r
 {\r
        public partial class App : Application\r
        {\r
@@ -33,22 +33,24 @@ namespace PsychlopsSilverlight4test
                {\r
 \r
                }\r
+\r
                private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)\r
                {\r
-                       // アプリケーションがデバッガーの外側で実行されている場合、ブラウザーの\r
-                       // 例外メカニズムによって例外が報告されます。これにより、IE ではステータス バーに\r
-                       // 黄色の通知アイコンが表示され、Firefox にはスクリプト エラーが表示されます。\r
+                       // If the app is running outside of the debugger then report the exception using\r
+                       // the browser's exception mechanism. On IE this will display it a yellow alert \r
+                       // icon in the status bar and Firefox will display a script error.\r
                        if (!System.Diagnostics.Debugger.IsAttached)\r
                        {\r
 \r
-                               // メモ : これにより、アプリケーションは例外がスローされた後も実行され続け、例外は\r
-                               // ハンドルされません。 \r
-                               // 実稼動アプリケーションでは、このエラー処理は、Web サイトにエラーを報告し、\r
-                               // アプリケーションを停止させるものに置換される必要があります。\r
+                               // NOTE: This will allow the application to continue running after an exception has been thrown\r
+                               // but not handled. \r
+                               // For production applications this error handling should be replaced with something that will \r
+                               // report the error to the website and stop the application.\r
                                e.Handled = true;\r
                                Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });\r
                        }\r
                }\r
+\r
                private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)\r
                {\r
                        try\r