在某些断点处中断时,Debugger :: HandleIPCEvent中的可视未处理异常 [英] visual Unhandled exception in Debugger::HandleIPCEvent when breaking on certain breakpoint
问题描述
我收到以下异常(荷兰语,英语翻译为文本),当我按确定时,调试器中断,它停止调试会话并关闭应用程序:
I get the following exception (in Dutch, English translation follows in the text) which breaks my debugger when I press 'OK' it stops the debug session and closes the application:
翻译成文本:
---------------------------
LerTemperaturaWPF.vshost.exe - Application Error
---------------------------
INTERNAL ERROR:
Unhandled exception in Debugger::HandleIPCEvent.
Event ID=0x246.
Exception code=0xc0000005, Eip=0x68fbaeca.
Process ID=0x1094 (4244), Thread ID=0x10a4 (4260).
---------------------------
OK
---------------------------
如果第一次调试器中断在某个代码段内:
This happens if the first time the debugger breaks are inside a certain piece of code:
private void PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
// Set value of property, only when the long editor is selected (no optionlist item is selected)
if (this.Editor.SelectedItem != null)
{
if (this.Editor.SelectedItem as OptionForList == null)
{
this.Editor.SelectedValue = ((Management.Property)this.Editor.SelectedItem).Value;
this.Editor.SelectedIndex = 0;
}
}
}
当我放置第二个if语句内部的断点,第二个if语句之前的断点(无论我放置在哪里)。
It happens when I place the breakpoint inside the 2nd if statement, before the second if statement (where ever I place it). It gives me no problems.
如果我确定调试器的第一个中断是在此代码之前,然后在该代码中达到断点,也没有问题。在获得此代码之前,调试器必须已损坏。现在,我认为它与这段代码无关(确定有90%)。
If I make sure the first break the debugger has is before this code and afterward it hits a breakpoint in this code there are no problems either. The debugger must have broken before getting to this code. Now I do not think it has anything to do with this code (90% certain).
已更改的属性是用户控件,因此我认为调试器无法正确处理用户控件?
The property changed is a user control and somehow I think the debugger can't handle the user control properly? maybe?
有人以前见过这种行为,并且知道如何解决吗?我是否需要关闭(或打开)某些调试设置?
Has anyone seen this behavior before and know how to fix this? do I need to turn off (or on) some of the debug settings??
推荐答案
右键单击项目/解决方案- >属性->调试->选中启用本机代码调试。
Right click on the project/solution -> Properties -> Debug -> Check "Enable native code debugging".
这篇关于在某些断点处中断时,Debugger :: HandleIPCEvent中的可视未处理异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!