Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Java wrapper to csound API

Date2011-06-06 08:25
FromFrancois PINOT
SubjectRe: [Cs-dev] Java wrapper to csound API
AttachmentsNone  None  
Hello Victor,

the problem comes from the Csound.Compile method using the CsoundArgVList object. If I replace the line

int result = csound.Compile(arguments.argc(), arguments.argv());

by the line

int result = csound.Compile("myfile.csd");

it works fine.

But when I run the python example of my FLOSS manuals article (http://en.flossmanuals.net/csound/ch063_the-csound-api/), which is very similar to the Java example, it works fine with the CsoundArgVList object.

So the problem seems to come from the compilation of the java wrapper on Ubuntu. I'm using the sun sdk.

Any idea?

Francois


Date: Sat, 04 Jun 2011 21:57:30 +0100
From: Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Subject: Re: [Cs-dev] Java wrapper to csound API
To: Developer discussions <csound-devel@lists.sourceforge.net>
Message-ID: <0563456F-0A37-42C3-9A14-9258126A72B4@nuim.ie>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Maybe you can try simplifying your program to see what is breaking it.
For instance, you could remove the
CsoundArgVList object (use the other versions of Compile that take
strings instead). The crash is occurring by the looks
of it either before compilation or at very start of it.

It's difficult for me to test it, because it's working on OSX. The
issue with blue, however, is known and I think Steve had a
workaround.

Victor