Update sample to load the Mono configuration file
authorMiguel de Icaza <miguel@gnome.org>
Fri, 23 Sep 2005 17:42:03 +0000 (17:42 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 23 Sep 2005 17:42:03 +0000 (17:42 -0000)
svn path=/trunk/mono/; revision=50597

samples/embed/teste.c

index f3400a046d1722e7876b8c32f301ccc1f8d0b193..d6a7b8381a18e7c6899ef76ea1df2681bee5f011 100644 (file)
@@ -43,6 +43,13 @@ main(int argc, char* argv[]) {
                return 1;
        }
        file = argv [1];
+
+       /*
+        * Load the default Mono configuration file, this is needed
+        * if you are planning on using the dllmaps defined on the
+        * system configuration
+        */
+       mono_config_parse (NULL);
        /*
         * mono_jit_init() creates a domain: each assembly is
         * loaded and run in a MonoDomain.