Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Random crashes in UltraWinGrid
posted

We use version 10.1.20101.2027. This happens occasionally when the user closes a window and the dispose method is called. I see there has been reported something similar with the UltraWinToolbars in this thread: http://forums.infragistics.com/forums/p/41053/236401.aspx#236401.

The stack trace follows bellow:

 

System.ArgumentException: Parameter is not valid.

   at System.Drawing.Graphics.GetHdc()

   at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)

   at System.Windows.Forms.WindowsGraphicsWrapper..ctor(IDeviceContext idc, TextFormatFlags flags)

   at System.Windows.Forms.TextRenderer.MeasureText(IDeviceContext dc, String text, Font font, Size proposedSize, TextFormatFlags flags)

   at Infragistics.Win.DrawUtility.MeasureStringHelper(Graphics gr, String text, Font font, Size layoutArea, StringFormat stringFormat, Int32& charactersFitted, Int32& linesFilled, Boolean returnElementsFitted, GdiDrawStringFlags drawStringFlags)

   at Infragistics.Win.DrawUtility.MeasureStringHorizontalFlowHelper(DrawStringParameters& parameters, Boolean trackCharactersFitted, Int32& charactersFitted, Int32& linesFilled, SizeF& unrotatedLayoutArea, SizeF& unrotatedTextSize)

   at Infragistics.Win.DrawUtility.MeasureStringHorizontalFlow(DrawStringParameters& parameters, Boolean trackCharactersFitted, Int32& charactersFitted, Int32& linesFilled, SizeF& unrotatedLayoutArea, SizeF& unrotatedTextSize)

   at Infragistics.Win.DrawUtility.MeasureStringHelper(DrawStringParameters& parameters, Boolean trackCharactersFitted, Int32& charactersFitted, Int32& linesFilled)

   at Infragistics.Win.DrawUtility.MeasureString(DrawStringParameters& parameters)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.MeasureStringF(Graphics gr, String text, Font font, Int32 maxWidth, StringFormat sf, TextOrientationInfo textOrientation)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.MeasureString(Graphics gr, String text, Font font, Int32 maxWidth, StringFormat sf, TextOrientationInfo textOrientation)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.CalculateFontSize(Font font, String text, Int32 maxWidth, TextOrientationInfo textOrientation)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.CalculateFontHeight(Font font)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.CalculateFontHeight(AppearanceData& appData)

   at Infragistics.Win.UltraWinGrid.UltraGridLayout.get_DefaultFontHeight()

   at Infragistics.Win.UltraWinGrid.UltraGridBand.CalcMinRowHeight()

   at Infragistics.Win.UltraWinGrid.UltraGridBand.GetMinRowHeightHelper(Boolean synchronized)

   at Infragistics.Win.UltraWinGrid.UltraGridBand.get_RowHeightResolved()

   at Infragistics.Win.UltraWinGrid.RowScrollRegion.ResetScrollInfo()

   at Infragistics.Win.UltraWinGrid.ScrollRegionBase.ShowScrollbar(Boolean show, Boolean resetScrollInfo)

   at Infragistics.Win.UltraWinGrid.RowScrollRegion.PositionScrollbar(Boolean resetScrollInfo)

   at Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows(Boolean resetScrollInfo)

   at Infragistics.Win.UltraWinGrid.RowScrollRegion.WillScrollbarBeShown(ScrollbarVisibility assumeColScrollbarsVisible)

   at Infragistics.Win.UltraWinGrid.ScrollRegionBase.WillScrollbarBeShown()

   at Infragistics.Win.UltraWinGrid.ViewStyleBase.AddBandHeaders(ColScrollRegion csr, UltraGridBand band)

   at Infragistics.Win.UltraWinGrid.ViewStyleSingle.RecreateHeaderList(ColScrollRegion csr)

   at Infragistics.Win.UltraWinGrid.ColScrollRegion.RegenerateVisibleHeaders()

   at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()

   at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()

   at Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager(Object newDataSource, String newDataMember)

   at Infragistics.Win.UltraWinGrid.UltraGridBase.set_DataSource(Object value)

   at Infragistics.Win.UltraWinGrid.UltraGridBase.DataSource_Disposed(Object sender, EventArgs e)

   at System.ComponentModel.Component.Dispose(Boolean disposing)

   at System.Windows.Forms.BindingSource.Dispose(Boolean disposing)

   at System.ComponentModel.Component.Dispose()

   at System.ComponentModel.Container.Dispose(Boolean disposing)

   at System.ComponentModel.Container.Dispose()