У меня проблемы с определением исключения, которое возникает в моем приложении.
По сути, я размещаю пользовательский элемент управления wpf, в котором есть инфраструктура XamDataGrid.
Когда я закрываю приложение, я получаю бесконечный цикл исключений типа:
Поток '' (0x24020) вышел с кодом 0 (0x0).
Первое случайное исключение типа «System.NullReferenceException» произошло в PresentationFramework.dll
Первое случайное исключение типа «System.NullReferenceException» произошло в PresentationFramework.dll
Первое случайное исключение типа «System.NullReferenceException» произошло в PresentationFramework.dll
и так далее ...
Если я удаляю XAMDATAGRID, все работает нормально ... так что я предполагаю, что проблема с сеткой ...
Часть трассировки стека: (Я не уверен, что это полезно:)
----------------------------------------------- -------------------------------------------- PresentationFramework.dll! Система. Windows.DeferredAppResourceReference.GetValue (System.Windows.BaseValueSourceInternal valueSource = Inherited) + 0x4d байт
WindowsBase.dll! System.Windows.DependencyObject.GetEffectiveValue (System.Windows.EntryIndex entryIndex = {System.Windows.EntryIndex}, System.Windows.DependencyProperty dp = {System.Windows.DependencyProperty}, System.Windows.RequestFlag запросы) + 0xe6 байт
WindowsBase.dll! System.Windows.DependencyObject.GetValueEntry (System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp = {System.Windows.DependencyProperty}, System.Windows.PropertyMetadwork метаданных. }, System.Windows.RequestFlags запросы = FullyResolved) + 0x2fe байт
WindowsBase.dll! System.Windows.DependencyObject.GetValue (System.Windows.DependencyProperty dp) + 0x48 байт
PresentationFramework.dll! MS.Internal.Text.TextProperties.InitCommon (System.Windows.DependencyObject target = {System.Windows.Controls.TextBlock}) + 0x6b байт
PresentationFramework.dll! MS.Internal.Text.TextProperties.TextProperties (System.Windows.FrameworkElement target = {System.Windows.Controls.TextBlock}, bool isTypographyDefaultValue = true) + 0x42 байта
PresentationFramework.dll! System.Windows.Controls.TextBlock.GetLineProperties () + 0x37 байт
PresentationFramework.dll! System.Windows.Controls.TextBlock.EnsureTextBlockCache () + 0x2f байт
PresentationFramework.dll! System.Windows.Controls.TextBlock.MeasureOverride (ограничение System.Windows.Size) + 0x50 байт
PresentationFramework.dll! System.Windows.FrameworkElement.MeasureCore (System.Windows.Size availableSize) + 0x1ee байт
PresentationCore.dll! System.Windows.UIElement.Measure (System.Windows.Size availableSize) + 0x249 байт
PresentationFramework.dll! MS.Internal.Helper.MeasureElementWithSingleChild (элемент System.Windows.UIElement, ограничение System.Windows.Size) + 0xfe байт
PresentationFramework.dll! System.Windows.Controls.ContentPresenter.MeasureOverride (ограничение System.Windows.Size) + 0x18 байт
PresentationFramework.dll! System.Windows.FrameworkElement.MeasureCore (System.Windows.Size availableSize) + 0x1ee байт
PresentationCore.dll! System.Windows.UIElement.Measure (System.Windows.Size availableSize) + 0x249 байт
PresentationFramework.dll! System.Windows.Controls.Control.MeasureOverride (ограничение System.Windows.Size) + 0x10c байт
PresentationFramework.dll! System.Windows.FrameworkElement.MeasureCore (System.Windows.Size availableSize) + 0x1ee байт
PresentationCore.dll! System.Windows.UIElement.Measure (System.Windows.Size availableSize) + 0x249 байт
PresentationFramework.dll! System.Windows.Controls.StackPanel.MeasureOverride (ограничение System.Windows.Size) + 0x187 байт
PresentationFramework.dll! System.Windows.FrameworkElement.MeasureCore (System.Windows.Size availableSize) + 0x1ee байт
PresentationCore.dll! System.Windows.UIElement.Measure (System.Windows.Size availableSize) + 0x249 байт
PresentationFramework.dll! System.Windows.Controls.Grid.MeasureOverride (ограничение System.Windows.Size) + 0x1cf байт
Любая помощь в решении этой проблемы очень ценится! Спасибо!