@nativescript/windows 0.1.0-alpha.66 → 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.
@@ -28,7 +28,20 @@ namespace __PROJECT_NAME__
28
28
 
29
29
  TaskScheduler.UnobservedTaskException += (_, args) =>
30
30
  {
31
- WriteExceptionReport("TaskScheduler.UnobservedTaskException", args.Exception, null);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/windows",
3
- "version": "0.1.0-alpha.66",
3
+ "version": "0.1.0-alpha.67",
4
4
  "description": "NativeScript for using Windows v8",
5
5
  "repository": {
6
6
  "type": "git",