应用程序处于中断模式 - 无法确定原因 [英] The application is in break mode - Unable to determine cause

查看:256
本文介绍了应用程序处于中断模式 - 无法确定原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的应用程序终止时,我遇到IDE有时会中断。

I'm experiencing that the IDE breaks sometimes when my application terminates.

当发生这种情况时,调用堆栈为空,并且线程列表显示一些线程不要向我透露任何信息。

When this occurs, the call stack is empty, and the thread list shows some threads which don't reveal any information to me.

当我选择Debugger - Step into时,IDE退出/终端看似正常,所以我看不到我如何进一步调查导致破坏的原因。

When I choose "Debugger"-"Step into", the IDE quits / terminally seemingly normally, so I don't see how I could further investigate what causes the breaking.

单击检查正在运行的任务不会显示任何任务。
单击继续执行似乎正常退出调试。
单击显示诊断工具会显示事件执行时停止:执行时停止,这不再告诉我。

Clicking "Check for running Tasks" doesn't display any tasks. Clicking "Continue executing" quits debugging seemingly normally. Clicking "Show diagnostic tools" shows the event "Stop at Execution: Stopped at Execution", which doesn't tell me any more.

屏幕截图是附件。

如何调查导致此中断的原因?

How can I investigate what's causing this break?

编辑:
我已经尝试了一个论坛成员所建议的内容,但我认为这不会产生任何可以帮助我的内容。这是截图:

I've tried what one forum member suggested, but that wouldn't result in anything that would help me, I think. This is a screenshot:

推荐答案

我没有找到任何方法来实际调试问题。
我解决了bruteforce方式的问题:

I didn't find any way to actually debug the problem. I solved the problem the bruteforce way:

我逐个删除所有程序集和COM对象,直到错误消失。

I removed all assemblies and COM objects one by one until the error was gone.

在我的情况下,我在一个模块中有一个带有WithEvents的公共控件。
似乎VB.NET根本就不喜欢它。
从现在开始,我将把控件及其内容放在一个表单中。

In my case, I had a public control with a WithEvents in a module. It seems that VB.NET didn't like that at all. From now on, I will put the control and its withevent in a form.

然而,主要问题仍然存在:Visual Studio没有提供任何帮助来轻松隔离问题。

The main problem however remains: Visual Studio doesn't offer any help to isolate the problem easily.

这篇关于应用程序处于中断模式 - 无法确定原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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