[Mono-list] "finally" problem in mcs.exe

Dietmar Maurer dietmar@ximian.com
22 May 2002 10:26:35 +0200

On Wed, 2002-05-22 at 08:25, Jaroslaw Kowalski wrote:
> In a bug 24699/"finally being called twice" i described a problem where
> "finally" handler is being called twice when an exception occurs.
> It's not mentioned in the bug description, but the sample file was
> compiled on Windows using csc.exe.
> Today I've noticed that when I compile the program with mcs.exe on linux,
> it behaves correctly under "mint" and "mono" but when compiled with
> csc.exe there is still a problem with "mint" (mono was fixed and works
> ok).
> So: mcs + mono = OK, mcs + mint = OK, csc + mono = OK, csc + mint =
> This suggests there's a bug in mcs compiler in the way finally handlers
> are compiled. Also there's a problem with mint/mono that allows such
> incorrectly-compiled program to run properly. Strange.

The problem is that mint does not handle exception correctly. We are
already aware of this problem.

- Dietmar