VB6:“Visual Basic 已停止工作" [英] VB6: "Visual basic has stopped working"

查看:107
本文介绍了VB6:“Visual Basic 已停止工作"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 microsoft visual basic 6 ide 有问题,因为它从一开始尝试打开我的 vb 项目时就给我Visual basic 已停止工作"错误.这不是与代码相关的问题,因为在尝试打开一个完美的旧工作项目时会出现相同的错误.此外,尝试打开 ide,以便创建一个新的项目,它让我.

I have a problem with my microsoft visual basic 6 ide, as it's giving me "Visual basic has stopped working" error, from the very start when trying to open my vb project. It is not a code related problem as the same error pumps out when trying to open a perfectly good older working project. Also, trying to open the ide, in order to create a new fresh project, that it lets me.

问题出现了,在调试项目代码时,我没有按停止调试按钮就停止了它(关闭了ide).所以我不知道问题可能是我突然关闭了ide,没有保存我所做的任何更改(?).之后,当我再次尝试打开该项目时,它给了我那个错误.我重新启动,但错误仍然存​​在.我研究过,我发现越接近这里:https://social.msdn.microsoft.com/Forums/vstudio/en-US/359453bd-c8b3-41a7-a668-2c3755dcacef/visual-basic-has-stopped-workingvb60?forum=vbgeneral

The problem appeared, when, while debugging project code, I stopped it (closed the ide) without pressing the stop debugging button.So I am not shure but the problem might be from the fact that I suddenly closed the ide, without saving any changes I made(?). After that, when I tried open the project again, it gives me that error. I restarted, but the error persists. I researched, the closer i found is here : https://social.msdn.microsoft.com/Forums/vstudio/en-US/359453bd-c8b3-41a7-a668-2c3755dcacef/visual-basic-has-stopped-workingvb60?forum=vbgeneral

但仍然没有解决方案.我怎样才能恢复我的项目?在事件发生之前它一直运行良好.我提到操作系统是 Windows 7.

But still no solution. How can I restore my project?It was working just fine until the incident. I mention that OS is Windows 7.

谢谢.

推荐答案

尝试一下,以防在启动时尝试执行项目中的某些代码时崩溃.如果在设计时呈现代码时执行代码,则可能会发生在用户控件之类的事情中.

Something to try, in case it's crashing trying to execute some code in your project on startup. This could happen in things like user controls if there's code that executed when it's rendered at design time.

  1. 打开 VB6
  2. 创建一个新的标准 EXE
  3. 点击工具|选项
  4. 点击常规标签
  5. 选择中断所有错误
  6. 点击确定
  7. 关闭 VB6,不保存创建的新项目,然后尝试用您的项目打开它

您无法在未加载项目的情况下进入选项,因此您需要创建一个新项目.该选项是全局的,因此在您打开项目时仍会设置它.

You can't get into the options without a project loaded so that's why you need to create a new one. The option is global so it will still be set when you open your project.

如果您的代码中存在导致错误的错误,那么这应该允许 IDE 中断错误,以便您可以看到它在哪里.

If there's an error in your code that's causing the error then this should allow the IDE to break on the error so you can see where it is.

您也可以尝试在打开项目之前删除 .vbw 文件,以防万一它已损坏.

You could also try deleting the .vbw file before opening your project, just in case it's corrupt.

这篇关于VB6:“Visual Basic 已停止工作"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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