[Cs-dev] Csound 5.13.0 Java Wrapper in Ubuntu 11.04
Date | 2011-04-30 20:59 |
From | conordempsey |
Subject | [Cs-dev] Csound 5.13.0 Java Wrapper in Ubuntu 11.04 |
Hi all, Using csnd.jar and lib_jcsound.so in Ubuntu Linux 11.04 When using the CppSound java class (derived from the Csound class) I find that the Csound SwigCPtr = 0 at runtime, while the CppSound SwigCPtr has a non zero value. This causes an error when instantiating a CsoundCallbackWrapper object, which appears to do a comparison based on the Csound SwigCptr value. This does not happen in csound 5.12.1 so i have reverted for now If you require any further information on this please let me know Kind regards, Conor-- View this message in context: http://csound.1045644.n5.nabble.com/Csound-5-13-0-Java-Wrapper-in-Ubuntu-11-04-tp4361631p4361631.html Sent from the Csound - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-05-01 04:06 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 5.13.0 Java Wrapper in Ubuntu 11.04 |
Hi Conor, What kind of error were you getting? I wonder if this was related to the error I had with doubles and the callback wrapper (it used to crash on me not when I instantiated the wrapper, but when I called SetMessageCallback on the wrapper). Thanks! steven On Sat, Apr 30, 2011 at 3:59 PM, conordempsey |
Date | 2011-05-01 08:40 |
From | conordempsey |
Subject | Re: [Cs-dev] Csound 5.13.0 Java Wrapper in Ubuntu 11.04 |
Attachments | None None |
Hi Steven, It seg faulted when calling the constructor public CsoundCallbackWrapper(Csound csound) { this(csndJNI.new_CsoundCallbackWrapper__SWIG_0(Csound.getCPtr(csound), csound), true);
csndJNI.CsoundCallbackWrapper_director_connect(this, swigCPtr, swigCMemOwn, true); } At this point the instance of Csound "csound" is actually a CppSound object with 2 SwigCPtr's (a Csound one and a CppSound one) The Csound SwigCptr is 0 and the other a non zero value.. but the test is being performed on the csound SwigCPtr and so it returns zero.. for the next function call.. and segfaults .. having an unusable SwigCPtr value.
In the debugger I copied the value from the non-zero CppSound SwigCPtr into the Csound SwigCptr and everything instantiated as expected.. This is unfortunately all the information I can give you at the moment as I have reverted to Csound 5.12.1 for a project, but I can try upgrading again in a 2 weeks and so might be able to provide more information then.
HTH Conor On Sun, May 1, 2011 at 4:07 AM, Steven Yi[via Csound] <[hidden email]> wrote: Hi Conor, -- music moves more than the maker View this message in context: Re: Csound 5.13.0 Java Wrapper in Ubuntu 11.04 Sent from the Csound - Dev mailing list archive at Nabble.com. |