[runtime] Okay to raise MonoError in thread start functions.
LocalFree (argvw);
mono_runtime_run_main_checked (method, argc, argv, &error);
- mono_error_raise_exception (&error); /* FIXME don't raise here */
+ mono_error_raise_exception (&error); /* OK, triggers unhandled exn handler */
mono_thread_manage ();
mono_runtime_quit ();
args [0] = start_arg;
/* we may want to handle the exception here. See comment below on unhandled exceptions */
mono_runtime_delegate_invoke_checked (start_delegate, args, &error);
- mono_error_raise_exception (&error); /* FIXME don't raise here */
+ mono_error_raise_exception (&error); /* OK, triggers unhandled exn handler */
}
/* If the thread calls ExitThread at all, this remaining code
return res;
} else {
int res = mono_runtime_run_main_checked (method, argc, argv, &error);
- mono_error_raise_exception (&error); /* FIXME don't raise here */
+ mono_error_raise_exception (&error); /* OK, triggers unhandled exn handler */
return res;
}
}