adaptagrams
adaptagrams copied to clipboard
Interop project problem
Hello, I am trying to get access to the libcola library using the cola.interop project. However, it throws a TypeInitializationException in runtime. "An unhandled exception of type 'System.TypeInitializationException' occurred in ColaClassLibrary.dll
Additional information: The type initializer for 'org.adaptagrams.cola.colaPINVOKE' threw an exception." Is this interop project still valid? How could I use the libcola in .Net environment?
I don't know much about cola.interop. Tim added this sometime in the past and it has not been maintained. It looks like it uses the SWIG interface via the generateWrapper.sh script. The SWIG interface has been maintained and added to, though is now adaptagrams.i instead of cola in the cola directory. The process to getting it working would be to update the generateWrappers.sh script, and possibly modify some of the search and replace lines in there, and regenerate the wrappers for the changes in the libraries. My suggestion is email Tim Dwyer (http://www.csse.monash.edu.au/~tdwyer/) to ask if he remembers exactly how it can be used from .Net. Feel free to CC me as I can help with questions about the SWIG interface, but sadly I'm not a windows person so don't know the first thing about .Net.
Or I could just add @tgdwyer to the discussion.... that could be easier.