Re: [Mono-dev] mono_method_desc_search_in_image problem, and some question...

2018-02-13 Thread R Zaghi
Just for the record, I mean write it in a C# class and load that one class so you can handle everything in C# itself - much more robust. On Tue, 13 Feb 2018 at 19:04, R Zaghi wrote: > If this is actually a problem with a library like mono then it sounds like > a caching

Re: [Mono-dev] mono_method_desc_search_in_image problem, and some question...

2018-02-13 Thread R Zaghi
If this is actually a problem with a library like mono then it sounds like a caching problem. If you build mono from source then it's easier to look into this... Compare your code with this example. In the example, the .dll assembly is re-loaded in a loop. You can see the clean up portion and the

Re: [Mono-dev] mono_method_desc_search_in_image problem, and some question...

2018-02-12 Thread R Zaghi
I think we need to know a bit more about what you are doing in the code exactly but as a quick first guess if you are recompiling using a system() call then are you 100% sure the old files are all overwritten? There are a couple of different ways to get compiled binary at runtime without a

[Mono-dev] mono_method_desc_search_in_image problem, and some question...

2018-02-12 Thread pierre
Hi, I am trying to embed mono... and I ran into a problem with the code: monoMethodDesc = mono_method_desc_new("Script:Main", 0); method = mono_method_desc_search_in_image(monoMethodDesc, monoEngine->image); It is returning a method on the cs code: public class Script {