English 中文(简体)
OutOfMemory Exception with entitiesSet ( local db) Object in TelephoneApplicationservice. 现任。 State onActivate
原标题:OutOfMemoryException with EntitySet (local db) object in PhoneApplicationService.Current.State upon OnActivate

当一个在申请国保存有实体名称的物体时,我从休眠状态中恢复过来时,我就获得了外部的欢迎。 这里是一个例子。

var list = new TaskList() { Title = "AA" };
list.TaskItems = new EntitySet<TaskItem>();
list.TaskItems.Add(new TaskItem() { Notes = "BB" });            
PhoneApplicationService.Current.State["CurrentList"] = list;//Fails only when resuming
var list1 = (TaskList)PhoneApplicationService.Current.State["CurrentList"]; // WORKS FINE
//PhoneApplicationService.Current.State["CurrentList"] = "AnyString" //Works fine; 

现在,我出版“《新闻》”和回避申请。 接着,我发表“Back” but子,促使它从杜尔曼特州恢复,它说“Resuming”为时段,我经过一段时间后获得了外派例外。

当我从“国家”中储存和取回该物体时,该物品就会被罚款。 只有在“恢复”时,才会出现例外。 谁知道为什么? 是否有任何工作?

问题回答

我回答我自己的问题。 我在退役期间失败的特工和特工项目之间有通知。 我认为这是由于实体Set而失败的,并询问这一问题。 与此有关。

在法典中,你表示,在多尔曼特州恢复申请时,你将保留<条码>。 我认为,在你行刑、不恢复时,你应免予申请。

Dormant

When the user navigates forward, away from an application, after the Deactivated event is raised, the operating system will attempt to put the application into a dormant state. In this state, all of the application’s threads are stopped and no processing takes place, but the application remains intact in memory. If the application is reactivated from this state, the application does not need to re-create any state, because it has been preserved.

If new applications are launched after an application has been made dormant, and these applications requires more memory than is available to provide a good user experience, the operating system will begin to tombstone dormant applications to free up memory.





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签