From 13e2ba2ae7b56dae69307a53199a392ea0af2e0f Mon Sep 17 00:00:00 2001 From: pjh9216 Date: Fri, 18 Jan 2019 11:54:15 +0900 Subject: [PATCH] Fix SynchronizationContext issue (#633) (#670) - Set SynchronizationContext on WidgetCoreBackend Run - Set SynchronizationContext on WatchCoreBackend Run --- .../Tizen.Applications.CoreBackend/WatchCoreBackend.cs | 2 ++ .../Tizen.Applications.CoreBackend/WidgetCoreBackend.cs | 2 ++ 2 files changed, 4 insertions(+) mode change 100755 => 100644 src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs mode change 100755 => 100644 src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs diff --git a/src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs b/src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs old mode 100755 new mode 100644 index 01f0bc1..a244b2c --- a/src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs +++ b/src/Tizen.Applications.WatchApplication/Tizen.Applications.CoreBackend/WatchCoreBackend.cs @@ -116,6 +116,8 @@ namespace Tizen.Applications.CoreBackend public void Run(string[] args) { + TizenSynchronizationContext.Initialize(); + Interop.Watch.ErrorCode err = Interop.Watch.ErrorCode.None; err = Interop.Watch.AddEventHandler(out _lowMemoryEventHandle, Interop.Watch.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero); diff --git a/src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs b/src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs old mode 100755 new mode 100644 index eee864b..e05eaa2 --- a/src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs +++ b/src/Tizen.Applications.WidgetApplication/Tizen.Applications.CoreBackend/WidgetCoreBackend.cs @@ -109,6 +109,8 @@ namespace Tizen.Applications.CoreBackend public void Run(string[] args) { + TizenSynchronizationContext.Initialize(); + Interop.Widget.ErrorCode err = Interop.Widget.ErrorCode.None; err = Interop.Widget.AddEventHandler(out _lowMemoryEventHandle, Interop.Widget.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero); if (err != Interop.Widget.ErrorCode.None) -- 2.7.4