[Mono-list] Exception wierdness

Dietmar Maurer dietmar@ximian.com
30 Sep 2002 09:20:33 +0200


It works when compiled with MS csc, but mcs seems to generates invalid
code. I will add a bugzilla entry for that.

- Dietmar


On Mon, 2002-09-30 at 05:18, Weiqi Gao wrote:
> Just been trying to compile and run a bit of silly code:
> 
> ==========8<==========8<==========8<==========
> using System;
> 
> class Foo {
>   static void Main() {
>     try {
>       throw new Exception();
>     } catch {
>       throw;
>     }
>   }
> }
> ==========8<==========8<==========8<==========
> 
> with the latest CVS mcs.  It compiles OK but when I run it, it seems to
> hang for a long time.  It should have caused an unhandled exception.
> 
> -- 
> Weiqi Gao
> weiqigao@networkusa.net
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list