-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mono Domain Set Config #9
Conversation
Tested using the example in issue #8 in Ubuntu with Mono 5.12 and is passing 👍🏽
|
I think these are different config files. The current
|
Ah I see what you mean, I was a bit confused because it was using ffi.NULL as the default, but I guess passing null to the mono_config_parse just loads in the default global config from the mono installation.
I made the change and now it will use the config_file parameter for the domain configuration, and still maintain the default for mono's global config. 👍🏽 |
I adjusted the PR a bit, could you check whether this still works for you? Using an empty string has the advantage of being an invalid path name, so it can't accidentally load a dummy file that just happens to be located in the directory. |
Just tested again with your changes. Working fine! 👍🏽 Thank you @filmor ! |
This PR addresses issue #8
In order for Mono to carry out some managed functions it needs to have a config set for the appdomain.
Here is the info from the docs.
Resource:
Mono Docs
I added the definition for mono_domain_set_config,
and then during initialization I give it a "dummy" if config_file is none.
Nothing else changes and the error no longer reproduces.