Xna游戏异常(尝试读取或写入...) [英] Xna game exception( attempted to read or write...)

查看:94
本文介绍了Xna游戏异常(尝试读取或写入...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要一些帮助,我在运行游戏时看到此错误(异常),异常是试图读取或写入受保护的内存.我已经访问了许多论坛,但找不到解决方案.有人可以帮我吗?

Hello guys, i need some help, i''m seeing this error(exception) while running my game, exception is Attempted to read or write a protected memory. i''ve visited number of forums but could not find the solution. can anybody help me out?

推荐答案



我假设您正在执行保存操作.如果是这样,请确保您没有在C:\之类的文件中保存游戏.在某些特定位置,您无法读取或写入文件,也无法删除它们.

如果要保存游戏,请使用文档"中的SavedGames目录.

干杯,

ge-force.
Hi,

I assume that you are doing a save operation. If so, make sure you aren''t saving a game in something like C:\. There are specific places where you cannot read or write files, and you can not delete them either.

If you want to save games, use the SavedGames directory in Documents.

Cheers,

ge-force.


这篇关于Xna游戏异常(尝试读取或写入...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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