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
190
Random crashes in UltraWinToolbars: System.ArgumentException: Parameter is not valid
posted

Our application uses 10.1.20101.2013 build of WinForms. Our customers reporting, the same crash, that originates from UltraWinToolbars. The crash occurs randomly but on a regular basis. Below is the stack trace:

 ************** Exception Text **************
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.MeasureString(Graphics gr, String text, Font font, Int32 width, StringFormat stringFormat, GdiDrawStringFlags drawStringFlags)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.MeasureString(AppearanceData& appearance, Font font, String stringToMeasure, Boolean isVertical, HotkeyPrefix hotkeyPrefix, ToolBase tool)
   at Infragistics.Win.UltraWinToolbars.ToolBase.MeasureString(AppearanceData& appearance, Font font, String stringToMeasure)
   at Infragistics.Win.UltraWinToolbars.ToolBase.GetTextSize()
   at Infragistics.Win.UltraWinToolbars.ButtonTool.CalculateLogicalSizeOfToolInstanceHelper(ToolBase tool)
   at Infragistics.Win.UltraWinToolbars.PopupToolBase.CalculateLogicalSizeOfToolInstance()
   at Infragistics.Win.UltraWinToolbars.ToolBase.CalculateLogicalSizeOfToolInstanceHelper()
   at Infragistics.Win.UltraWinToolbars.ToolBase.CalculateWidthResolved(Boolean useCalculateLogicalSize)
   at Infragistics.Win.UltraWinToolbars.ToolBase.get_WidthResolved()
   at Infragistics.Win.UltraWinToolbars.UltraToolbarBase.AdjustToolWidths(Int32 extent)
   at Infragistics.Win.UltraWinToolbars.DockRow.GetToolbarLogicalPositions(Int32 extent, Int32[]& widths)
   at Infragistics.Win.UltraWinToolbars.DockRow.CalculateMetrics()
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.AddToolbar(UltraToolbarBase toolbar, Int32 row, Int32 col, Boolean refreshDockAreaSize, Boolean exclusiveOnRow)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.AddToolbar(UltraToolbar toolbar, Boolean restoreOldPosition)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.AddToolbarToDockArea(UltraToolbar toolbar, Boolean restoreOldPosition)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.AddToolbarsToDockArea(List`1 toolbarList)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.AddToolbarsToDockArea(DockedPosition targetDockArea)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.InitializeDockAreaToolbars()
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.InternalSetActiveMdiChildManager(UltraToolbarsManager newActiveMdiChildManager, Boolean calledFromMdiChildActivate, Boolean remergeIfUnchanged)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnFormMdiChildActivated(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e)
   at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
   at System.Windows.Forms.Form.WmMdiActivate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at ?.?.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Is this a known bug, is there a hotfix?

Thanks

  • 155
    posted

    So this is a dead-end?

    Has anyone reported this bug to Infragistics? Any developments on that?

    Infragistics Support is aware of this bug?

  • 145
    posted

    Few of our customer's have reported the same issue and they all have windows 7

    here is the detail of their machine

     

    OS Name:                   Microsoft Windows 7 Home Premium
    OS Version:                6.1.7600 N/A Build 7600
    OS Manufacturer:           Microsoft Corporation
    OS Configuration:          Standalone Workstation
    OS Build Type:             Multiprocessor Free
    Registered Owner:          Mort
    Registered Organization:  
    Product ID:                00359-OEM-8992687-00006
    Original Install Date:     3/8/2011, 7:56:08 PM
    System Boot Time:          3/22/2011, 7:00:52 AM
    System Manufacturer:       eMachines
    System Model:              EL1352G
    System Type:               x64-based PC
    Processor(s):              1 Processor(s) Installed.
                               [01]: AMD64 Family 16 Model 6 Stepping 3 AuthenticAMD ~2800 Mhz
    BIOS Version:              American Megatrends, Inc. P01-A1, 1/28/2010
    Windows Directory:         C:\windows
    System Directory:          C:\windows\system32
    Boot Device:               \Device\HarddiskVolume2
    System Locale:             en-us;English (United States)
    Input Locale:              en-us;English (United States)
    Time Zone:                 (UTC-05:00) Eastern Time (US & Canada)
    Total Physical Memory:     1,791 MB
    Available Physical Memory: 686 MB
    Virtual Memory: Max Size:  3,583 MB
    Virtual Memory: Available: 1,563 MB
    Virtual Memory: In Use:    2,020 MB
    Page File Location(s):     C:\pagefile.sys
    Domain:                    WORKGROUP
    Logon Server:              \\MORT-PC
    Hotfix(s):                 78 Hotfix(s) Installed.
                               [01]: 982861
                               [02]: KB971033
                               [03]: KB2079403
                               [04]: KB2120976
                               [05]: KB2207566
                               [06]: KB2249857
                               [07]: KB2281679
                               [08]: KB2284742
                               [09]: KB2286198
                               [10]: KB2296011
                               [11]: KB2305420
                               [12]: KB2345886
                               [13]: KB2347290
                               [14]: KB2378111
                               [15]: KB2385678
                               [16]: KB2387149
                               [17]: KB2387530
                               [18]: KB2388210
                               [19]: KB2393802
                               [20]: KB2416471
                               [21]: KB2419640
                               [22]: KB2423089
                               [23]: KB2425227
                               [24]: KB2442962
                               [25]: KB2443685
                               [26]: KB2454826
                               [27]: KB2467023
                               [28]: KB2467659
                               [29]: KB2479628
                               [30]: KB2479943
                               [31]: KB2483614
                               [32]: KB2484033
                               [33]: KB2485376
                               [34]: KB2487426
                               [35]: KB2505438
                               [36]: KB958488
                               [37]: KB971468
                               [38]: KB972270
                               [39]: KB973525
                               [40]: KB974332
                               [41]: KB974431
                               [42]: KB974571
                               [43]: KB975467
                               [44]: KB975496
                               [45]: KB975560
                               [46]: KB975741
                               [47]: KB976098
                               [48]: KB976264
                               [49]: KB976902
                               [50]: KB976972
                               [51]: KB977074
                               [52]: KB977609
                               [53]: KB977863
                               [54]: KB978207
                               [55]: KB978251
                               [56]: KB978262
                               [57]: KB978542
                               [58]: KB978601
                               [59]: KB978637
                               [60]: KB978886
                               [61]: KB979099
                               [62]: KB979306
                               [63]: KB979309
                               [64]: KB979482
                               [65]: KB979538
                               [66]: KB979687
                               [67]: KB979688
                               [68]: KB979916
                               [69]: KB980195
                               [70]: KB980232
                               [71]: KB980408
                               [72]: KB980846
                               [73]: KB982110
                               [74]: KB982132
                               [75]: KB982214
                               [76]: KB982665
                               [77]: KB982799
                               [78]: KB983590
    Network Card(s):           1 NIC(s) Installed.
                               [01]: NVIDIA nForce 10/100/1000 Mbps Ethernet