[xbuild] Remove ErrorTest.TestExecute1()
[mono.git] / mono / profiler / mono-profiler-iomap.c
index 0dff9e980880e9e276e33182ceb53ea43ff693e4..7030a4b3e5fa4149528fda724c8c49e8fd51a321 100644 (file)
@@ -195,7 +195,7 @@ static inline void print_report (const gchar *format, ...)
        vfprintf (stdout, format, ap);
        fprintf (stdout, "\n");
        va_end (ap);
-       klass = mono_class_from_name (mono_get_corlib (), "System", "Environment");
+       klass = mono_class_load_from_name (mono_get_corlib (), "System", "Environment");
        mono_class_init (klass);
        prop = mono_class_get_property_from_name (klass, "StackTrace");
        str = (MonoString*)mono_property_get_value (prop, NULL, NULL, NULL);