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
Hello,
I have tried a few experiments with UltraWinToolbars but they are always worked fine. If you have any specific version of NetAdvnatage for WinForms giving you a trouble please feel free to specify it and I will be glad to look further into it for you.
I have tried using the latest version for 10.3, 11.1 and 11.2 and I was not able to reproduce such behavior.
Please feel free to contact us if you have any other questions with this matter.
So this is a dead-end?
Has anyone reported this bug to Infragistics? Any developments on that?
Infragistics Support is aware of this bug?
Hello all,
I'm experiencing the same issue and i'm getting the exact same stacktrace as Nolde.
I'm running NetAdvantage Vol10.3 build 20103 on Windows 7.
The odd thing here is that running on several other client machines (all Windows 7 x86) this bug does not occur.
Only with this particular one.
Does anyone know if Infragistics solved this bug yet? Any workaround?
Thanks.
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 7600OS Manufacturer: Microsoft CorporationOS Configuration: Standalone WorkstationOS Build Type: Multiprocessor FreeRegistered Owner: MortRegistered Organization: Product ID: 00359-OEM-8992687-00006Original Install Date: 3/8/2011, 7:56:08 PMSystem Boot Time: 3/22/2011, 7:00:52 AMSystem Manufacturer: eMachinesSystem Model: EL1352GSystem Type: x64-based PCProcessor(s): 1 Processor(s) Installed. [01]: AMD64 Family 16 Model 6 Stepping 3 AuthenticAMD ~2800 MhzBIOS Version: American Megatrends, Inc. P01-A1, 1/28/2010Windows Directory: C:\windowsSystem Directory: C:\windows\system32Boot Device: \Device\HarddiskVolume2System 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 MBAvailable Physical Memory: 686 MBVirtual Memory: Max Size: 3,583 MBVirtual Memory: Available: 1,563 MBVirtual Memory: In Use: 2,020 MBPage File Location(s): C:\pagefile.sysDomain: WORKGROUPLogon Server: \\MORT-PCHotfix(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]: KB983590Network Card(s): 1 NIC(s) Installed. [01]: NVIDIA nForce 10/100/1000 Mbps Ethernet
We are also experiencing the same issue. It particularly occurs on a Windows Vista machine, and haven't been able to reproduce on a Windows 7 machine. We're currently using Infragistics 10.3, build 2015.