Print Page | Close Window

OutOfMemoryException

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3289
Printed Date: 13-May-2026 at 8:54am


Topic: OutOfMemoryException
Posted By: JJANSSEN
Subject: OutOfMemoryException
Date Posted: 23-Feb-2012 at 10:05am
Hi guys,

Can anybody help me?
I get an exception by displaying data in an Telerik RadGridView. 
I use Silverlight 4, Devforce 6.1.5.0 Telerik 2011.3.1220.1040.
The count of rows in the table is between 2000 and 2500. The table us no paging, so all rows get into the cache.

System.OutOfMemoryException was unhandled by user code
  Message=Eine Ausnahme vom Typ System.OutOfMemoryException wurde ausgelöst.
  StackTrace:
       bei System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark)
       bei System.Threading.Thread.Start(StackCrawlMark& stackMark)
       bei System.Threading.Thread.Start(Object parameter)
       bei IdeaBlade.EntityModel.AsyncProcessor`1.Execute()
       bei IdeaBlade.EntityModel.EntityManager.<>c__DisplayClassc9`1.<DoAsyncRequest>b__c6()
       bei IdeaBlade.EntityModel.EntityManager.DoAsyncAction(Action action)
       bei IdeaBlade.EntityModel.EntityManager.DoAsyncRequest[TArgs](AsyncProcessor`1 processor)
       bei IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsyncCore[T](AsyncProcessor`1 processor)
       bei IdeaBlade.EntityModel.EntityManager.ExecuteQueryAsync(IEntityQuery query, Action`1 userCallback, Object userState)
       bei IdeaBlade.EntityModel.EntityQueryExtensions.ExecuteAsync(IEntityQuery query, Action`1 userCallback, Object userState)
       bei IdeaBlade.EntityModel.ListEntityReference`1.ExecuteQuery(EntityReferenceStrategy erStrategy, FetchStrategy fetchStrategy)
       bei IdeaBlade.EntityModel.ListEntityReference`1.GetRelatedEntityList(EntityReferenceStrategy erStrategy)
       bei IdeaBlade.EntityModel.ListEntityReference`1.GetListValue()
       bei IdeaBlade.EntityModel.NavigationListEntityProperty`2.<.ctor>b__0(NavigationEntityPropertyGetInterceptorArgs`2 args)
       bei IdeaBlade.Core.PropertyInterceptor`3.HandleAction(Action`1 action, TArgs args)
       bei IdeaBlade.Core.PropertyInterceptor`3.<BuildTargetedCombinedAction>b__8(TArgs args)
       bei IdeaBlade.Core.PropertyInterceptor`3.ExecuteActions(TArgs args)
       bei IdeaBlade.Core.PropertyInterceptor`3.GetValue(TInstance instance, Object context)
       bei IdeaBlade.Core.PropertyInterceptor`3.GetValue(TInstance instance)
       bei IdeaBlade.EntityModel.NavigationListEntityProperty`2.GetValue(TInstance instance)
       bei x.x.x.x.x.x.get_Property()
       bei lambda_method(Closure , Object )
       bei IdeaBlade.Core.FastPropertyInfo.GetValue(Object item)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.ProcessUdtProperty(Object item, FastPropertyInfo property)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.<>c__DisplayClassb.<ProcessPropertiesForUdt>b__a(FastPropertyInfo prop)
       bei IdeaBlade.Core.EnumerableFns.ForEach[T](IEnumerable`1 items, Action`1 action)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.ProcessPropertiesForUdt(Object item, IEnumerable`1 properties)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.<>c__DisplayClass8.<ProcessPropertiesForUdts>b__7(Object it)
       bei IdeaBlade.Core.EnumerableFns.ForEach[T](IEnumerable`1 items, Action`1 action)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.ProcessPropertiesForUdts(IEnumerable items, IEnumerable`1 properties)
       bei IdeaBlade.EntityModel.PassthruDataBlock.UdtProcessor.ProcessUdt(Object item, Type type)
       bei IdeaBlade.EntityModel.PassthruDataBlock.Resolve(EntityQueryResult helper)
       bei IdeaBlade.EntityModel.EntityQueryResult..ctor(DataQueryResult dataQueryResult, EntityManager entityManager, MergeStrategy mergeStrategy, Guid queryId, QueryInfo queryInfo)
       bei IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)
       bei IdeaBlade.EntityModel.EntityManager.MergeAndReturnDataSourceOnly(IEntityFinder finder, DataQueryResultCollection dqResults)
       bei IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)
       bei IdeaBlade.EntityModel.EntityManager.AsyncFetchCompleted[T](T op)
       bei IdeaBlade.EntityModel.EntityManager.<ExecuteQueryAsyncCore>b__89[T](T op)
       bei IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)
  InnerException:


With best regards, Johannes




Replies:
Posted By: DenisK
Date Posted: 23-Feb-2012 at 11:20am
Hi Johannes,

Could you try the following and let me know which one throws OutOfMemoryException?

1. Fetch a less number of rows. For example, 500 or 1000.

2. Use paging such that it's displaying 500 or so rows in a page.

3. Do fetch of all rows but in an isolated unit test without any Telerik control being involved.


Posted By: JJANSSEN
Date Posted: 24-Feb-2012 at 5:41am
Hi DenisK,

1)
i configure my query for fetching:
  500 rows works
1000 rows works
1500 failed.

2)
If i change my code that the table and the query load in the first call only 500 rows and the next 500 if the user step to the next page it works fine.

3)
The silverlight unit test also crushed by deserialize 1500 rows into objects.

-----
So i think this is not a Telerik problem.
Ok. 1500 rows in one table are more then the user can handle. But why is it no problem if the query fetch more and more rows / objects in more then one call of an query.

Best regards, Johannes



Posted By: DenisK
Date Posted: 24-Feb-2012 at 10:58am
Thanks Johannes.

Let me do further investigation here. 

In the meantime, could you post your SL unit test and the full exception stack trace?


Posted By: DenisK
Date Posted: 27-Feb-2012 at 8:10pm
Hi Johannes,

I'm not getting any luck in my investigation. I'd appreciate it if you can provide your SL unit test and the full exception stack trace so I can proceed forward. Thanks.



Print Page | Close Window