c**t 发帖数: 2744 | 1 在如下的代码中,finish try block, caught exception or in finally block 没有
一个
执行的.myEventDlg 倒是执行完毕.
try
{
Trace("in try block");
if( myEventDlg != null )
myEventDlg(this, myEventArgs);
Trace("finish try block");
}
catch(Exception ex)
{
Trace("caught exception: " + ex.ToString();
}
finally
{
Trace("in finally block");
}
...
public delegate void MyEventHandler( object sender, MyEventArgs e);
..
myObj.MyEventRaised += new MyEventHandler(this.MyEvent_Handler);
private void |
|