Skip to content
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

Interop project problem #8

Open
insyncim64 opened this issue Jan 4, 2014 · 2 comments
Open

Interop project problem #8

insyncim64 opened this issue Jan 4, 2014 · 2 comments
Assignees

Comments

@insyncim64
Copy link

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?

@mjwybrow
Copy link
Owner

mjwybrow commented Jan 7, 2014

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.

@mjwybrow
Copy link
Owner

mjwybrow commented Jan 7, 2014

Or I could just add @tgdwyer to the discussion.... that could be easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants