* loader.c: don't assert when a typeref can't be loaded, give
a chance to the runtime to trow an exception instead.
* loader.h: fix warning.
svn path=/trunk/mono/; revision=3438
+
+Thu Mar 28 12:32:00 CET 2002 Paolo Molaro <lupus@ximian.com>
+
+ * loader.c: don't assert when a typeref can't be loaded, give
+ a chance to the runtime to trow an exception instead.
+ * loader.h: fix warning.
+
2002-03-28 Dietmar Maurer <dietmar@ximian.com>
* class.c (mono_class_proxy_vtable): added proxy support
mimage = image->references [scopeindex-1]->image;
klass = mono_class_from_name (mimage, nspace, name);
- g_assert (klass != NULL);
+ if (!klass) {
+ g_warning ("Missing method %s.%s::%s", nspace, name, mname);
+ mono_metadata_free_method_signature (sig);
+ return NULL;
+ }
mono_class_init (klass);
/* mostly dumb search for now */
typedef struct {
MonoMethod method;
guint16 piflags; /* pinvoke flags */
- void (*code) ();
+ void (*code) (void);
} MonoMethodPInvoke;
typedef struct {