Hello.
I am having a strange problema and i already tried everything i remember.
When I am in Debug everything works Fine.
But when i am in Release mode i am getting always this error, whenever i try to Open a Window with RadRichTextBox.
I Have Absolute no code associated. Only a RadRichTextBox in a Grid.
Please help!!
Error code:
System.NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.
em Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.UpdateCaretStyle()
em Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.MeasureOverride(Size availableSize)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Window.MeasureOverrideHelper(Size constraint)
em System.Windows.Window.MeasureOverride(Size availableSize)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.ContextLayoutManager.UpdateLayout()
em System.Windows.UIElement.UpdateLayout()
em System.Windows.Interop.HwndSource.SetLayoutSize()
em System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
em System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
em System.Windows.Forms.Integration.ElementHost.<OnHandleCreated>b__54_0()
em System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
em System.Windows.Threading.Dispatcher.Invoke(Action callback)
em System.Windows.Forms.Integration.ElementHost.OnHandleCreated(EventArgs e)
em System.Windows.Forms.Control.WmCreate(Message& m)
em System.Windows.Forms.Control.WndProc(Message& m)
em System.Windows.Forms.Integration.ElementHost.WndProc(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am having a strange problema and i already tried everything i remember.
When I am in Debug everything works Fine.
But when i am in Release mode i am getting always this error, whenever i try to Open a Window with RadRichTextBox.
I Have Absolute no code associated. Only a RadRichTextBox in a Grid.
Please help!!
Error code:
System.NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.
em Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.UpdateCaretStyle()
em Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.MeasureOverride(Size availableSize)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Control.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
em System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
em System.Windows.Controls.Grid.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
em System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Controls.Border.MeasureOverride(Size constraint)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.Window.MeasureOverrideHelper(Size constraint)
em System.Windows.Window.MeasureOverride(Size availableSize)
em System.Windows.FrameworkElement.MeasureCore(Size availableSize)
em System.Windows.UIElement.Measure(Size availableSize)
em System.Windows.ContextLayoutManager.UpdateLayout()
em System.Windows.UIElement.UpdateLayout()
em System.Windows.Interop.HwndSource.SetLayoutSize()
em System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
em System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
em System.Windows.Forms.Integration.ElementHost.<OnHandleCreated>b__54_0()
em System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
em System.Windows.Threading.Dispatcher.Invoke(Action callback)
em System.Windows.Forms.Integration.ElementHost.OnHandleCreated(EventArgs e)
em System.Windows.Forms.Control.WmCreate(Message& m)
em System.Windows.Forms.Control.WndProc(Message& m)
em System.Windows.Forms.Integration.ElementHost.WndProc(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)