Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Stack overflow exception? Collapse All
Subject Author Date
Sublight Developer Feb 16, 2011 - 2:28 PM

Since I upgraded Elegant Ribbon from version 3.8 to 4.0 my application frequently crashes with Stack Overflow exception (unfortunately stack trace of this exception is not available in this case).


Exception happens randomly after few hours of application usage. Did you change something drastically in version 4.0?

Sublight Developer Feb 22, 2011 - 11:49 AM

Here is simple example how you can reproduce problem:


using System;
using System.Windows.Forms;
 
namespace ElegantRibbonTest
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}
 
		protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
 
			System.Windows.Forms.TextBox winFormsTextBox = new TextBox();
			winFormsTextBox.Text = "Test";
			winFormsTextBox.Width = 100;
			Controls.Add(winFormsTextBox);
			Controls.Remove(winFormsTextBox);
			winFormsTextBox.Dispose(); //successfully disposed
 
			Elegant.Ui.TextBox textBox = new Elegant.Ui.TextBox();
			textBox.Text = "Test";
			textBox.Width = 100;
			Controls.Add(textBox);
			Controls.Remove(textBox);
			textBox.Dispose(); //System.StackOverflowException exception
		}
	}
}

 

Sublight Developer Feb 16, 2011 - 2:52 PM

I think it has something to do with dynamic Elegant Ribbon controls creation (Elegant.Ui.TextBox and Elegant.Ui.Button) and Dispose() call...

Technical Support Feb 23, 2011 - 2:34 AM

Thank you for the bug report. We have fixed it and will send you the updated assemblies soon.