X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fcoree.c;h=4436229376e10101b1d16f827601c72f466d2328;hb=c6f75c367aba6c14fb86861853ca6009978c0f9b;hp=326251cc140c53a575ff7e227abcdeea92bc2782;hpb=6b139f4c98eb90bfb7e1285933fc682dae541cad;p=mono.git diff --git a/mono/metadata/coree.c b/mono/metadata/coree.c index 326251cc140..4436229376e 100644 --- a/mono/metadata/coree.c +++ b/mono/metadata/coree.c @@ -23,6 +23,7 @@ #include "domain-internals.h" #include "appdomain.h" #include "object.h" +#include "object-internals.h" #include "loader.h" #include "threads.h" #include "environment.h" @@ -197,7 +198,8 @@ __int32 STDMETHODCALLTYPE _CorExeMain(void) argv [i] = g_utf16_to_utf8 (argvw [i], -1, NULL, NULL, NULL); LocalFree (argvw); - mono_runtime_run_main (method, argc, argv, NULL); + mono_runtime_run_main_checked (method, argc, argv, &error); + mono_error_raise_exception (&error); /* OK, triggers unhandled exn handler */ mono_thread_manage (); mono_runtime_quit ();