Current filter:
                                You should refresh the page.
                                0
                                  • 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)
                                    Data:
                                    Callstack:
                                       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)

                                0

                                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.

                                Thanks,
                                Stan.

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.