Trace WPF System.Windows.ResourceDictionary warning Resource not found

An error appears in the output window. I can not find what the problem is?

System.Windows.ResourceDictionary Warning: 9: resource not found; ResourceKey = '17 'System.Windows.ResourceDictionary Warning: 9: Resource not found; ResourceKey = '# FF000000'; ResourceKey.HashCode = '51639504'; ResourceKey.Type = 'System.Windows.Media.SolidColorBrush' System.Windows.ResourceDictionary Warning: 9: Resource not found; ResourceKey = '17 'System.Windows.ResourceDictionary Warning: 9: Resource not found; ResourceKey = '# FF000000'; ResourceKey.HashCode = '51639504'; ResourceKey.Type = 'System.Windows.Media.SolidColorBrush' System.Windows.ResourceDictionary Warning: 9: Resource not found; ResourceKey = '17'

How to find an error?

0
source share
2 answers

If you are familiar with WinDBG, you can break the process in the debugger at the debug output and check the column.

To do this in WinDBG, join your process and go to Debug-> Event Filters

Find the line with the inscription "Debugee output" and click on it. On the right button "Enabled" at runtime

Type g at the command line to start the debugger, and when it breaks into the correct output, use kb to print an unmanaged call or .loadby sos clr! clrstack for printing managed calls

0
source

{StaticResource 17}, {DynamicResource 17} {x:Static 17}. - . xaml, .

0

Source: https://habr.com/ru/post/1530459/


All Articles