[Mono-list] interpreter exceptions

Sam Clegg sam@superduper.net
Sun, 6 Jul 2003 17:57:47 +0100


--ftEhullJWpWg/VHq
Content-Type: multipart/mixed; boundary="KsGdsel6WgEHnImy"
Content-Disposition: inline


--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

mint.exe doesn't seem to report unhandled exceptions.  The attached
patch seemed to work for me, although i imagine there is probably some
reason for the current behaviour.

sam
--=20
sam clegg
:: sam@superduper.net :: http://superduper.net/ :: PGP : D91EE369=20
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Content-Transfer-Encoding: quoted-printable

Index: interp.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /mono/mono/mono/interpreter/interp.c,v
retrieving revision 1.238
diff -u -r1.238 interp.c
--- interp.c	27 Jun 2003 07:52:01 -0000	1.238
+++ interp.c	6 Jul 2003 16:36:20 -0000
@@ -4353,6 +4353,8 @@
 		g_error ("No entry point method found in %s", image->name);
=20
 	rval =3D mono_runtime_run_main (method, argc, argv, &exc);
+	if (exc)
+		mono_unhandled_exception (exc);
=20
 	return rval;
 }

--KsGdsel6WgEHnImy--

--ftEhullJWpWg/VHq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/CFULLOvxONke42kRAlfPAKCKdsCuFDup8WZEAL9UxqFLFkqrywCfdoW6
bfrJq8zPdhh/m0pPe2Poa70=
=DYtg
-----END PGP SIGNATURE-----

--ftEhullJWpWg/VHq--