+2007-01-15 Miguel de Icaza <miguel@novell.com>
+ * loader.c (mono_loader_error_prepare_exception): Clear the error
+ once we have extracted the information from it, do this before we
+ call into the JIT's class loading mechanisms.
+
+ * object.c (mono_class_create_runtime_vtable): Do not clear the
+ loader error before calling mono_class_get_exception_for_failure
+ as the loader error is needed inside
+ mono_class_get_exception_for_failure to throw the error (thinko).
+
+ Fixes #80521
+
Mon Jan 15 10:27:31 CET 2007 Paolo Molaro <lupus@ximian.com>
* reflection.c: align fields rva data so it's faster to load at
else
msg = g_strdup_printf ("Could not load file or assembly '%s' or one of its dependencies.", error->assembly_name);
- ex = mono_get_exception_file_not_found2 (msg, mono_string_new (mono_domain_get (), error->assembly_name));
mono_loader_clear_error ();
+ ex = mono_get_exception_file_not_found2 (msg, mono_string_new (mono_domain_get (), error->assembly_name));
g_free (msg);
break;
}
if (!mono_class_init (class) || class->exception_type){
MonoException *exc;
mono_domain_unlock (domain);
- mono_loader_clear_error ();
exc = mono_class_get_exception_for_failure (class);
g_assert (exc);
mono_raise_exception (exc);
* @value: The value to be set
*
* Sets the value of the field described by @field in the object instance @obj
- * to the value passed in @value.
+ * to the value passed in @value. This method should only be used for instance
+ * fields. For static fields, use mono_field_static_set_value.
*
* The value must be on the native format of the field type.
*/