Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Mon, 6 May 2002 07:23:27 +0000 (07:23 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Mon, 6 May 2002 07:23:27 +0000 (07:23 -0000)
* loader.c: print a big message when an icall can't be found.

svn path=/trunk/mono/; revision=4331

mono/metadata/ChangeLog
mono/metadata/loader.c

index 28b3266c8271fb1d44f06eb0472208335ce23aea..cd72e51e4d4da262965ef83f6501549d90672691 100644 (file)
@@ -1,3 +1,8 @@
+
+Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * loader.c: print a big message when an icall can't be found.
+
 2002-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * string-icalls.c: fix bug 24248.
index 68c32e252261a5ff37ca61d52d60f02a3d7fbee8..099aeaa25389a44736b23c94127f90ca6d1aae7c 100644 (file)
@@ -109,9 +109,14 @@ mono_lookup_internal_call (MonoMethod *method)
                name = g_strconcat (method->klass->name_space, ".", method->klass->name, "::", method->name, "(", tmpsig, ")", NULL);
                if (!(res = g_hash_table_lookup (icall_hash, name))) {
                        g_warning ("cant resolve internal call to \"%s\" (tested without signature also)", name);
+                       g_print ("\nYour mono runtime and corlib are out of sync.\n");
+                       g_print ("When you update one from cvs you need to update, compile and install also the other.\n");
+                       g_print ("Do not report this as a bug unless you're sure you have updated correctly:\nyou probably have a broken mono install.\n");
+                       g_print ("If you see other errors or faults after this message they are probably related\n");
+                       g_print ("and you need to fix you mono install first.\n");
 
                        g_free (name);
-                       g_free(tmpsig);
+                       g_free (tmpsig);
 
                        return NULL;
                }