Current filter:
                                You should refresh the page.
                                Support Center
                                  • Hello,
                                    Today I got an exception after clicking on a button which led to an error as following. After this error occurred the mentioned button was represented by a white rectangle with a red cross in it. The problem is that I cannot really reproduce it. Normally the application which contains this button works fine independent on which computer. Can you imagine what leads to this error?

                                    Type: System.NullReferenceException
                                    Message: Object reference not set to an instance of an object.
                                    Source: DevExpress.Utils.v6.3

                                    Method: DevExpress.Utils.Text.FontCache GetFontCacheByFont(System.Drawing.Graphics, System.Drawing.Font)
                                       at DevExpress.Utils.Text.FontsCache.GetFontCacheByFont(Graphics graphics, Font font)
                                       at DevExpress.Utils.Text.FontsCache.GetStringSize(Graphics graphics, String text, Font font, StringFormat stringFormat, Int32 maxWidth)
                                       at DevExpress.Utils.Text.TextUtils.GetStringSize(Graphics g, String text, Font font, StringFormat stringFormat, Int32 maxWidth)
                                       at DevExpress.Utils.Paint.XPaintMixed.CalcTextSize(Graphics g, String s, Font font, StringFormat strFormat, Int32 maxWidth)
                                       at DevExpress.Utils.AppearanceObject.CalcTextSize(Graphics g, StringFormat sf, String s, Int32 width)
                                       at DevExpress.Utils.AppearanceObject.CalcTextSize(Graphics g, String s, Int32 width)
                                       at DevExpress.XtraEditors.Drawing.EditorButtonPainter.CalcCaptionSize(EditorButtonObjectInfoArgs e)
                                       at DevExpress.XtraEditors.Drawing.EditorButtonPainter.DrawContent(ObjectInfoArgs e)
                                       at DevExpress.XtraEditors.Drawing.SkinEditorButtonPainter.DrawContent(ObjectInfoArgs e)
                                       at DevExpress.XtraEditors.Drawing.EditorButtonPainter.DrawObject(ObjectInfoArgs e)
                                       at DevExpress.XtraEditors.Drawing.SkinEditorButtonPainter.DrawObject(ObjectInfoArgs e)
                                       at DevExpress.XtraEditors.Drawing.BaseButtonPainter.DrawContent(ControlGraphicsInfoArgs info)
                                       at DevExpress.XtraEditors.Drawing.BaseControlPainter.Draw(ControlGraphicsInfoArgs info)
                                       at DevExpress.XtraEditors.BaseControl.OnPaint(PaintEventArgs e)
                                       at DevExpress.XtraEditors.BaseButton.OnPaint(PaintEventArgs e)
                                       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
                                       at System.Windows.Forms.Control.WmPaint(Message& m)
                                       at System.Windows.Forms.Control.WndProc(Message& m)
                                       at DevExpress.Utils.Controls.ControlBase.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)


                                Hello Christoph,

                                Thank you for the report. However, unfortunately, I'm unable to reproduce this issue on my side using the latest version of our suites - 6.3.6. There is no any project attached. I can suppose that this problem is similar to the issue described in the following thread: RED CROSS OF DEATH. Please review it and check whether you are performing all operations correctly. If it doesn't help, please attach a sample project demonstrating the issue and describe the exact steps on how to reproduce it.

                                I'm awaiting your response.


                                If you need additional product information, write to us at or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners