@nativescript/windows 0.1.0-alpha.65 → 0.1.0-alpha.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/__PROJECT_NAME__/CrashDiagnostics.cs +14 -1
- package/framework/libs/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/x64/nativescript.dll +0 -0
- package/framework/libs/x64/nativescript.dll +0 -0
- package/package.json +1 -1
|
@@ -28,7 +28,20 @@ namespace __PROJECT_NAME__
|
|
|
28
28
|
|
|
29
29
|
TaskScheduler.UnobservedTaskException += (_, args) =>
|
|
30
30
|
{
|
|
31
|
-
|
|
31
|
+
// Always mark the exception as observed to prevent the finalizer
|
|
32
|
+
// from rethrowing it on the finalizer thread.
|
|
33
|
+
try { args.SetObserved(); } catch { }
|
|
34
|
+
|
|
35
|
+
// Log the exception but never allow logging failures to propagate
|
|
36
|
+
// (this handler runs on the finalizer thread in some cases).
|
|
37
|
+
try
|
|
38
|
+
{
|
|
39
|
+
WriteExceptionReport("TaskScheduler.UnobservedTaskException", args.Exception, null);
|
|
40
|
+
}
|
|
41
|
+
catch (Exception logEx)
|
|
42
|
+
{
|
|
43
|
+
try { WriteToTraceLog("[CrashDiagnostics] Failed to write unobserved exception: " + logEx); } catch { }
|
|
44
|
+
}
|
|
32
45
|
};
|
|
33
46
|
}
|
|
34
47
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|