This is a migrated thread and some comments may be shown as answers.

Little strange bug with RadMessageBox

3 Answers 85 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 2
Fabien asked on 09 Mar 2009, 04:12 PM
Hi,

I created a static class named GlobalMessageBox.

Inside this class, I set ThemeName for all RadMessageBox.Show

For example,
        /// <summary> 
        /// Displays RadMessageBox with specified text.  
        /// </summary> 
        /// <param name="text">The text to display in the RadMessageBox.</param> 
        /// <returns>One of the <see cref="T:System.Windows.Forms.DialogResult"></see> values</returns> 
        public static DialogResult Show(string text) 
        { 
            RadMessageBox.SetThemeName(_theme); 
            return RadMessageBox.Show(text); 
        } 

For the theme, I setted a const like this,
        private const string _theme = "Telerik"

In previous version (I have the last one available), it worked. Now, sometime, it crash. (for example, in a form with a huge gridview).
I found a way to "patch" this with :
        private static string _theme = "Telerik"

This is really strange. If somebody can explain me.

Best regards,
Fabien


3 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 25 Mar 2009, 04:26 PM
Hi Fabien,

First, I would like to apologize for the delay of my answer but we experienced some issues with our Support Ticketing System which prevented us from seeing some tickets and forum topics sent by our customers.

As to the question, I have not managed to reproduce the described behavior. It seems very strange and I cannot find any reason for this. Since it could be caused from something specific in your application, please send me a small example project that demonstrates it. This will help me to investigate the case and provide further assistance.

I am looking forward to your reply.

Best wishes,
Martin Vasilev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Fabien
Top achievements
Rank 2
answered on 25 Mar 2009, 04:47 PM
Hi,

thanks for your response.

I can't provide small example because I don't have enough time to do it.

Anyway, this issue happened only :
- in debug mode (as I know)
- with huge screens

I use Microsoft Enterprise Library with my project and when I save a gridview with a lot of rows, sometime there is this bug.

It's like if text to display is null or theme name is null.
The text to display change, and it's a "object is null or...."

Best regards,

Fabien
0
Martin Vasilev
Telerik team
answered on 30 Mar 2009, 11:58 AM
Hello Fabien,

Thank you for getting back to me.

We will investigate the described further. Meanwhile, we will highly appreciate any additional details that you could share with us in the feature.

Do not hesitate to contact me again if you have other questions. 

Sincerely yours,
Martin Vasilev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
MessageBox
Asked by
Fabien
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Fabien
Top achievements
Rank 2
Share this question
or