Julian This project is incredibly outdated, but it is a starting point, so better than nothing:
https://github.com/olympum/caffeine <https://github.com/olympum/caffeine> -Dave > On Sep 6, 2017, at 2:55 PM, Julian Dolby <[email protected]> wrote: > > I have been trying to use C# code together with Java code, to provide > program analysis of .NET code as part of WALA (https://github.com/wala/WALA). > Given the seeming end of work on IKVM, I have been exploring using a small > amount of C++ code and JNI to bridge the two systems. I have tried two > options: > > 1) a C++ program that create a Mono VM and a JVM, loading the needed code > into both and then calls functions in the them. The Java code contains > 'native' methods that call back into C++ and from there to Mono. > > 2) a Java program that calls C++ using JNI, which creates a Mono VM and calls > code in it, passing results (integers and strings) back to Java. > > In both cases, I get code that works fine up to a point, and then crashes > with what appears to be a segmentation fault in the Mono memory allocator. > Depending on what GC I choose, I get slightly different errors. > > Does anyone have a recommended recipe for doing what I need? > > Thanks, > Julian > > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________ Mono-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/mono-list
