Skip to content

Commit

Permalink
Merge pull request #3574 from SamBent/NoisyStackTrace
Browse files Browse the repository at this point in the history
Move StackTrace to error branch
  • Loading branch information
SamBent authored Oct 7, 2020
2 parents 911b3c9 + ace56f6 commit f84d22a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,6 @@ private void BuildOrReparentWindow()
// window later when a new parent is available
var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(_hwnd);
Debug.Assert(hwnd != null);
Trace.WriteLineIf(hwnd == null, $"- Warning - Notification Window is null\n{new System.Diagnostics.StackTrace(true).ToString()}");
if (hwnd != null)
{
UnsafeNativeMethods.SetParent(_hwnd, new HandleRef(null, hwnd.Handle));
Expand All @@ -998,6 +997,10 @@ private void BuildOrReparentWindow()
// shutdown event after this HwndHost.
SystemResources.DelayHwndShutdown();
}
else
{
Trace.WriteLineIf(hwnd == null, $"- Warning - Notification Window is null\n{new System.Diagnostics.StackTrace(true).ToString()}");
}
}
}
finally
Expand Down

0 comments on commit f84d22a

Please sign in to comment.