Forums » Bugs & Problems Search

Calling Codegen from C++/CLI New Reply

Author Post
Posts: 5
Registered: Feb 29, 2012

I'm trying to figure out how to call codegen from C++/CLI. I've created a wrapper class and I'm trying to call it from C#, but I'm getting an AccessViolationException. I apologize for cross posting, but I'm looking for someplace that I can get some help. I've created a project on github and I keep trying to get around this issue but I'm strictly a C# developer and don't know what I'm doing here.

Here's a link to my post on stackoverflow with all the details and links to the source code: http://stackoverflow.com/questions/10249237/c-cli-noob-system-accessviolationexception

Posts: 1
Registered: May 26, 2012

The codegen dll is a release build. If you link it with a debug build it will crash due to incompatible C runtime versions in the same binary - probably triggered by use of stl strings and memory allocation difference in debug and release.

try a release build and see if it works. There's more about this here: http://developer.echonest.com/forums/thread/671

Posts: 195
Registered: Feb 22, 2011

developmentalmadness, It appears from your stackoverflow question that you are building Echoprint codegen for Windows. Echoprint questions would be best handled on the Google group (https://groups.google.com/forum/?fromgroups#!forum/echoprint). That's where you are most likely to find other developers who are building Echoprint codegen on Windows.

mjdavy, I suspect you are referring to the free ENMFP Codegen binaries published by The Echo Nest. This is a different piece of software but is also referred to as "codegen". This FAQ hopefully answers more questions:

http://notes.variogr.am/post/27796385927/the-audio-fingerprinting-at-the-echo-nest-faq

~David

Posts: 2
Registered: Apr 28, 2014

Добрый день. Подскажите где можно взять скомпилированную dll у проекта echoprint-codegen. Хочу поюзать на Windows

Posts: 5
Registered: Feb 13, 2014

I'm currently developing a component using the open source codegen.dll per C#, will post some usable code as soon as the API is back online so I can do the final tests. I will be doing this without C++/CLI though.

Posts: 195
Registered: Feb 22, 2011

Olga, I don't speak Russian, but it appears you are looking for a compiled codegen for Echoprint. The Echo Nest does not provide compiled binaries for Echoprint. You should submit your question on the Echoprint Google Group. Several members of the community have built Echoprint on Windows.

floele, We are working to get the Echoprint API back online. We will post to the Announcements forum and Echoprint group when that happens, hopefully by the end of the week.

David

Posts: 5
Registered: Feb 13, 2014

Posted my solution at http://stackoverflow.com/a/23702768/259059 now. If you need codegen.dll as binary I can provide it as well, was quite a challenge getting all this stuff compiled for x86 and x64.

Reply to this Thread

You must log in to post a reply.