H
Henry
I am puzzled by something. I have a program foo.cs it has
a reference to an assembly bar.cs. The latter
intentionally performs a divide by zero. The former has a
try/catch pair for the offending method invocation which
works in 2/3 of the cases I have tested. I am calling the
bar.method() (which returns a string) as the first
argument to MessageBox.show():
1) Running in the debugger - works
2) Running from bin/Debug - does not (unhandled exception)
3) Running from bin/Debug with bar.exe.config - works
bar.exe.config contains:
<system.windows.forms jitDebugging="true" />
I suspect it is choking in the MessageBox.Show method. I
can certainly work around it, but I would really like to
know what is going on before adding a string object to do
that.
Can I get an expert opinion on this?
Sorry if this is a repeat question
Henry
a reference to an assembly bar.cs. The latter
intentionally performs a divide by zero. The former has a
try/catch pair for the offending method invocation which
works in 2/3 of the cases I have tested. I am calling the
bar.method() (which returns a string) as the first
argument to MessageBox.show():
1) Running in the debugger - works
2) Running from bin/Debug - does not (unhandled exception)
3) Running from bin/Debug with bar.exe.config - works
bar.exe.config contains:
<system.windows.forms jitDebugging="true" />
I suspect it is choking in the MessageBox.Show method. I
can certainly work around it, but I would really like to
know what is going on before adding a string object to do
that.
Can I get an expert opinion on this?
Sorry if this is a repeat question
Henry