当我执行我的程序它显示错误 [英] When I Was Execution My Program It Is Showing Error

查看:83
本文介绍了当我执行我的程序它显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows在bgi.exe中触发了一个断点。



这可能是由于堆的损坏,这表明bgi.exe或任何错误它已加载的DLL。



这也可能是因为用户在bgi.exe有焦点时按下F12.



输出窗口可能包含更多诊断信息。





请帮我解决此错误。

Windows has triggered a breakpoint in bgi.exe.

This may be due to a corruption of the heap, which indicates a bug in bgi.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while bgi.exe has focus.

The output window may have more diagnostic information.


please help me for solving this error .

推荐答案

我们无法帮助您 - 我们无法访问您的代码,您的数据,甚至您的PC!



所以,这取决于你。

在函数的第一行放置断点,并通过调试器运行代码。然后查看您的代码,并查看您的数据并找出手动应该发生的事情。然后单步执行每一行检查您预期发生的情况正是如此。如果不是,那就是当你遇到问题时,你可以回溯(或者再次运行并仔细观察)以找出原因。


抱歉,但我们不能为您做到这一点 - 时间让您学习一门新的(非常非常有用的)技能:调试!
We can't help you - we don't have access to your code, your data, or even your PC!

So, it's going to be up to you.
Put a breakpoint on the first line in the function, and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.

Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!


您必须调试您的程序。



1.在调试模式下构建并运行它直到发生错误。

2.也许你可以看到错误发生时执行的代码。

3.如果不是:他的错误也必须有一个内存地址。不要停止程序,但要复制该值并查看内存查看器中有哪些内存或对象。它可能会给你一个提示错误的提示。



大多数时候写入的内存没有分配给该用途。示例:缓冲区太短的字符串。
You must debug your program.

1. Build it in debug mode and run it til an error is happening.
2. Maybe you can see what code is executed when the errors happens.
3. If not: he error must also have a memory address where it ist happening. Dont stop the program but copy that value and look with the memory viewer what memory or objects are there. It may give you a hint what is wrong.

Most times memory is written which isnt allocated for that use. Example: a string in a too short buffer.


这篇关于当我执行我的程序它显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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