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 | c**t 发帖数: 2744 | 2 seems CLR can't find finally block? Googled "StackOverflowException" can
cause
this, but catch block couldn't be found either, so frustrated
【在 c**t 的大作中提到】 : 在如下的代码中,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"); : }
| c**t 发帖数: 2744 | 3 resolved by compiling the code on win 2003 server. I used to compile code on
XP then copy binaries over. Since MS last update MS08-67, this approach se
ems not always good.
【在 c**t 的大作中提到】 : seems CLR can't find finally block? Googled "StackOverflowException" can : cause : this, but catch block couldn't be found either, so frustrated
| k***r 发帖数: 4260 | 4 sounds like a bug somewhere
on
se
【在 c**t 的大作中提到】 : resolved by compiling the code on win 2003 server. I used to compile code on : XP then copy binaries over. Since MS last update MS08-67, this approach se : ems not always good.
|
|