[WPSL]尝试读取或写入受保护的内存。这通常表明其他内存已损坏。在Windows Phone 8中 [英] [WPSL]Attempted to read or write protected memory. This is often an indication that other memory is corrupt. in windows phone 8

查看:86
本文介绍了[WPSL]尝试读取或写入受保护的内存。这通常表明其他内存已损坏。在Windows Phone 8中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在Windows Phone 8中,我创建了一个聊天应用程序,如果一次连续收到更多消息,则会在App.xaml.cs文件中抛出异常。


< p style ="color:#222222; line-height:19.5px; padding-right:0px; clear:both; font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:15px">
如何解决这个问题。或者找出问题发生的时间和地点。


System.AccessViolationException未处理


Mess age:System.Windows.ni.dll中出现未处理的"System.AccessViolationException"类型异常


附加信息:尝试读取或写入受保护的内存。这通常表示其他内存已损坏。




解决方案

您尝试取消引用空引用:)

In windows phone 8 i created one chat application, in that if continually received more message at a time, an exception is thrown at App.xaml.cs file .

how to solve this.or any way to find when and where the issue is happened.

System.AccessViolationException was unhandled

Message: An unhandled exception of type 'System.AccessViolationException' occurred in System.Windows.ni.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

解决方案

You tried dereferencing a null reference :)


这篇关于[WPSL]尝试读取或写入受保护的内存。这通常表明其他内存已损坏。在Windows Phone 8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆