Hi,
My problem is with RadForm. When I create a descendant from RadForm and put on it many telerik components, then I see application memory is increasing every time I open that form. I have prepared a small example: there are two forms: first form is just standard .NET form with button to open RadForm and then ask GC about Total used memory. I have used version 2009.2.729 and the problem was with one form, which after 100 times of opening and closing results in about 2 gigabytes of allocated memory. I have checked the last version of Telerik WinForms 2009.3.9.1203, but it still allocates more memory every next time.
The explicit call to garbage collector does not help.
And why I can't attach zip file ?
You can download the zip archive (17 kb) from here http://rapidshare.com/files/367983868/TelerikCheck.zip.html
The single method I have write is following :
|
private void button1_Click(object sender, EventArgs e) { FormTelerik form = new FormTelerik(); DialogResult res =form.ShowDialog(); form.Dispose(); form = null; long bytes = GC.GetTotalMemory(true); textBox1.Text = string.Format("{0:F3} Megabytes", 1.0*bytes/1024/1024); } |
System.InvalidCastException wurde nicht behandelt.
Message=
"Ungltige Umwandlung von \"System.DateTime\" in \"System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]\"."
Source=
"mscorlib"
StackTrace:
bei System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
bei System.DateTime.System.IConvertible.ToType(Type type, IFormatProvider provider)
bei System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
bei Telerik.WinControls.UI.GridFilterCellElement.SetFilterValue(Object value)
bei Telerik.WinControls.UI.GridFilterCellElement.set_Value(Object value)
bei Telerik.WinControls.UI.RadGridView.UpdateFiltering()
What I am trying to do is to change the style/coloring of a RadMenuItem. I want the left side of the menu to have a different coloring style then of the whole RadMenuItem, left section meaning the section that contains the icons/images of the menu item.
When I set the below properties it changes the whole item.
CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor = System.Drawing.Color.FromArgb(CType(CType(215, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor2 = System.Drawing.Color.FromArgb(CType(CType(132, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(78, Byte), Integer))
CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor3 = System.Drawing.Color.FromArgb(CType(CType(63, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(10, Byte), Integer))
CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor4 = System.Drawing.Color.FromArgb(CType(CType(78, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
Thanks in advance for your help.