尝试读取或写入受保护的内存.这通常表示在创建精简版数据库文件时其他内存已损坏 [英] Attempted to read or write protected memory. This is often an indication that other memory is corrupt while creating compact edition database file

查看:106
本文介绍了尝试读取或写入受保护的内存.这通常表示在创建精简版数据库文件时其他内存已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
当我使用c#将紧凑版(.sdf)数据库文件添加到我的移动应用程序项目中时,显示尝试读取或写入受保护的内存.这通常表明其他内存已损坏"的Visual Studio错误消息.此错误.提供问题的完整解决方案.或请给我建议解决问题的方法..谢谢

hi friends,
when i add compact edition(.sdf)database file into my mobile application project using c# that displays"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" visual studio error message.please reply how to solve this error.give the full solution for the problem..or please give me the suggestion for correcting the problem....Thanx

推荐答案

给出完整的解决方案解决问题的方法

您如何期望任何人使用如此大量的信息来做到这一点?此错误意味着您的程序中存在一个错误,因此您需要将其缩小到发生代码的部分,如果仍然无法解决,请发布代码的副本,以便人们可以尝试分析可能发生的情况.会出错.
give the full solution for the problem

How do you expect anyone to do that with this amount of information? This error means there is a bug in your program so you need to narrow it down to the section of code where it occurs, and if you still cannot work it out, then post a copy of the code so people can try to analyse what may be going wrong.


Richard绝对正确!

这可以通过 Debugger 解决.使用它,您将挖掘出一切.如果您仍然不知道如何解决它,请问另一个问题.届时您将能够提交一份全面的问题报告.在这种情况下,不要忘了标记所有相关的代码行,并在代码失败时显示.

—SA
Richard is absolutely right!

This is solved using the Debugger. Use it, and you will dig out everything. If you still don''t know how to fix it, ask another question. By that time you will be able to present a comprehensive issue report. In this case, don''t forget to post mark all the relevant lines of code and show when the code fails.

—SA


这篇关于尝试读取或写入受保护的内存.这通常表示在创建精简版数据库文件时其他内存已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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