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

System.OutOfMemoryException

3 Answers 196 Views
Form
This is a migrated thread and some comments may be shown as answers.
Sudheer
Top achievements
Rank 1
Sudheer asked on 13 Apr 2012, 06:36 AM
Hi,

I recently got the below exception, couldn't reproduce it again.
Any idea on this,

:Error At: radpageview1_SelectedPageChanging
 | System.OutOfMemoryException | Exception of type 'System.OutOfMemoryException' was thrown. | mscorlib |    at System.Collections.Generic.Dictionary`2.Initialize(Int32 capacity)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Telerik.WinControls.RadPropertyValueCollection.GetEntry(RadProperty prop, Boolean createNew)
   at Telerik.WinControls.RadElement.set_ShouldPaint(Boolean value)
   at Telerik.WinControls.Primitives.FillPrimitive.InitializeFields()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.UI.ScrollBarButton.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.ScrollBarButton..ctor(ScrollButtonDirection direction)
   at Telerik.WinControls.UI.RadScrollBarElement.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.RadScrollBarElement..ctor()
   at Telerik.WinControls.UI.RadScrollLayoutPanel.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.UI.RadScrollLayoutPanel..ctor()
   at Telerik.WinControls.UI.RadScrollViewer.CreateScrollLayoutPanel()
   at Telerik.WinControls.UI.RadScrollViewer.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.RadScrollViewer..ctor()
   at Telerik.WinControls.UI.RadDropDownMenuElement.CreateChildElements()
   at Telerik.WinControls.RadElement.CallCreateChildElements()
   at Telerik.WinControls.RadElement.Construct()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.UI.RadDropDownMenu.CreatePopupElement()
   at Telerik.WinControls.UI.RadDropDownMenu.InitializeChildren()
   at Telerik.WinControls.UI.RadDropDownMenu..ctor(RadElement ownerElement, RadDropDownMenu parentPanel)
   at Telerik.WinControls.UI.RadDropDownMenu..ctor()
   at Telerik.WinControls.UI.RadContextMenuDropDown..ctor()
   at Telerik.WinControls.UI.RadContextMenu..ctor(IContainer owner)
   at Telerik.WinControls.UI.RadContextMenu..ctor()
   at Telerik.WinControls.UI.RadMaskedEditBoxElement..ctor()
   at Telerik.WinControls.UI.RadMaskedEditBox.CreateChildItems(RadElement parent)
   at Telerik.WinControls.RadControl.Telerik.WinControls.IComponentTreeHandler.CreateChildItems(RadElement parent)
   at Telerik.WinControls.RadControl.ComponentOverrideElementTree.CreateChildItems(RadElement parent)
   at Telerik.WinControls.RadControl.Construct()
   at Telerik.WinControls.RadControl..ctor()
   at Telerik.WinControls.UI.RadMaskedEditBox..ctor()
   at Form1.InitializeComponent()

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 17 Apr 2012, 03:39 PM
Hello Sudheer,

Thank you for writing.

We have not received reports on such issue so far. Would you please try isolate the specific case that triggers the exception? Also, we will need a sample project that demonstrates the issue, so that we can reproduce it on our side. Once our team is able to observe and analyze the exception, we will do our best to provide you with proper solution.

I am looking forward to your reply.

Kind regards,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Mallika
Top achievements
Rank 1
answered on 21 Nov 2012, 05:11 PM
Hi Telerik Team,

I am getting this error:

5834728,"System.Web.UI.StateBag get_ViewState()Err : Exception of type 'System.OutOfMemoryException' was thrown.Stack :    at Telerik.Web.UI.GridStateManager.get_ViewState()

   at Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation()

   at Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable()

   at Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray)

   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)

   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)

   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()

   at Telerik.Web.UI.GridTableView.PerformSelect()

   at Telerik.Web.UI.GridTableView.DataBind()

   at Telerik.Web.UI.RadGrid.DataBind()

   at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)

This error is not coming on the local and the staging server. This error is coming on the production server.
I am not sure how to resolve this error. please help in this..this is very urgent.

 

0
Boryana
Telerik team
answered on 23 Nov 2012, 09:25 AM
Hi Mallika,

The current thread is related to our WinForms suite. Since the content of your ticket suggests that you are using our ASP.NET products, I kindly ask you to open a new thread in the correct forum.

Kind regards,
Boryana
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Form
Asked by
Sudheer
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Mallika
Top achievements
Rank 1
Share this question
or