无法读取内存 [英] unable to read memory

查看:91
本文介绍了无法读取内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i写了一段代码,但是当我想要执行它时我有一个例外,当我调试它时说:无法读取内存

有谁可以说我是什么意思?有什么问题?

请帮帮我。

我真的遇到了麻烦

非常感谢

hi
i wrote a code but when i want to execute it i have an exception and when i debug it say:"unable to read memory"
can anyone say me what it means? what is the problem?
please help me.
i'm realy in trouble
thanks a lot

推荐答案

没有你的代码,我们无法做任何实际的帮助 - 你可以做 任何事情!



即使使用你的代码,我们也无法做很多事情 - 当然也没有你自己无法做到的事情。

首先在你的代码中运行代码调试器。在显示问题的函数的开头放置一个断点,然后单步查看正在发生的事情。尝试在执行一行代码之前弄清楚应该发生什么,并将其与实际执行的内容进行比较。当它们不同时,你可能会看到问题的开始。



这是一项称为调试的技能的开始,开发它的唯一方法是用它。所以从现在开始,当你的问题可能很小的时候,你将来会节省很多时间和精力。
Without your code, we can't do anything practical to help - you could have done anything!

Even with your code, there isn't a lot we can do - and certainly nothing that you couldn't do yourself.
Start by running your code in the debugger. Put a breakpoint at the start of the function that is showing the problem, and single step through looking at what is going on. Try to work out what should happen before you execute a line of code, and compare that to what actually did. When they differ, you are probably looking at the start of your problem.

This is the beginnings of a skill called debugging, and the only way to develop it is to use it. So start now, when your problem is probably quite small, and you will save yourself a lot of time and effort in the future.


这篇关于无法读取内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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