[EditorBrowsable(EditorBrowsableState.Never)]
public static List<Window> GetWindowList()
{
+ if (Interop.Stage.IsInstalled() == false)
+ {
+ NUILog.ErrorBacktrace($"[ERROR] dali adaptor and dali window is not ready. just return NULL here");
+ return null;
+ }
+
uint ListSize = Interop.Application.GetWindowsListSize();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
{
Tizen.Log.Error("NUI", $"{msg} (at line {lineNum} of {caller} in {file})\n");
}
+
+ public static void ErrorBacktrace(string msg,
+ [CallerLineNumber] int lineNum = 0,
+ [CallerMemberName] string caller = null,
+ [CallerFilePath] string file = null
+ )
+ {
+ Tizen.Log.Error("NUI", $"[ERR]{msg} (at line {lineNum} of {caller} in {file})\n");
+ Tizen.Log.Error("NUI", $"[ERR] Back Trace =>");
+ global::System.Diagnostics.StackTrace st = new global::System.Diagnostics.StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ global::System.Diagnostics.StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
}
}