From: Eunki, Hong Date: Thu, 14 Dec 2023 02:44:43 +0000 (+0900) Subject: [NUI] Initialize C# items if required X-Git-Tag: submit/tizen/20240109.095302~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3a8eb70efc53d3477d52f84713e0af7daccd538;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Initialize C# items if required We have create ProcessorController constructor without initalize as default. If NUI core want to change this policy, we can initialize at constructor time. But this case code has some error. It didn't create C# side objects and only create native side. Let we make constructor with initialize works well now. Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/internal/Common/ProcessorController.cs b/src/Tizen.NUI/src/internal/Common/ProcessorController.cs index a5c4dbad0..494dfa4e4 100755 --- a/src/Tizen.NUI/src/internal/Common/ProcessorController.cs +++ b/src/Tizen.NUI/src/internal/Common/ProcessorController.cs @@ -40,8 +40,12 @@ namespace Tizen.NUI { } - private ProcessorController(bool initializeOnConstructor) : this(initializeOnConstructor ? Interop.ProcessorController.New() : Interop.ProcessorController.NewWithoutInitialize(), true) + private ProcessorController(bool initializeOnConstructor) : this(Interop.ProcessorController.NewWithoutInitialize(), true) { + if (initializeOnConstructor) + { + Initialize(); + } } internal ProcessorController(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)