调试 - 奇怪的行为 [英] Debug - Strange behaviour

查看:81
本文介绍了调试 - 奇怪的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用按钮我已经定义了一个函数:



private void newButton_Click(object sender,System.EventArgs e)

{

isNew = true;

isNewListe = false;

// .....

}



设置断点,其中isNew = true; - 这意味着在这个程序的第一行



在调试模式下按下新按钮我没有到达断点,程序在点击新的时刻退出



有什么理由吗?请帮助!

MiKR41

解决方案

检查您是否在ASPX中点击按钮时注册了相同的事件。



粘贴更多代码以获得更好的想法。这还不足以找到线索。


亲爱的G代码101 - 我找到了它。首先,我写了一个小程序来调用受质疑的DLL - 一切正常。下一步:调用调用dll,点击btn_new有一个丢失的dll宣布(在引用中它仍然存在!)我删除了dll并再次绑定它,在主程序中做同样的错误消失了。这意味着,每次更换常用的dll时,都必须删除所有引用并将其再次绑定到所有程序部分!?

感谢您的建议

MiKr41

Using a Button I have defined a function:

private void newButton_Click(object sender, System.EventArgs e)
{
isNew = true;
isNewListe = false;
//.....
}

There is a breakpoint set where isNew = true; - that means at the very first line of this procedure

In Debug Mode pressing the new Button I dont reach the breakpoint, the program is quitting at the moment of clicking New

Any reason for that? Please help!
MiKR41

解决方案

Check if you have registered the same event on button click in ASPX.

Paste some more code for better idea. This is not enough for the clue.


Dear G-code 101 - I found it. First I wrote a small program calling the questioned DLL - everything worked fine. Next step: call the calling dll, do the click on btn_new there was a missing dll announced (in the references it was still there!) I removed the dll and bound it again, doing the same in the main program the error is gone. This means, everytime you are changing a frequently used dll you would have to remove all references and bind it again to all program parts!?
Thank you for your advice
MiKr41


这篇关于调试 - 奇怪的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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