Hi<br>

Thanks for the answers!<br>

<br>

Yes, the problem was sintax.<br>

Missing return statments was a mistake, but not the mistake. Calling a
function creating a new float variable was the mistake which originated
the nullpointexc.<br>

Now I understand and I&#39;m happy :-)<br>

<br>

Very grateful<br>

Lucas<br>
<br>
<br><br><div><span class="gmail_quote">2008/4/19, eduard aylon &lt;<a href="mailto:eduard.aylon@gmail.com">eduard.aylon@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Lucas,<br> <br> I think the problem comes from PercAditiva::setResonancia(dur dt,<br> float factor) where you call env[i].setDecay( dt, float factor ). Note<br> that you are calling the function and&nbsp;&nbsp;creating a new float factor. I<br>
 guess it should be env[i].setDecay( dt, factor ). Doing so, no<br> exceptions/errors/segfaults occur in my system.<br> <br><br> eduard<br> <br><br> <br> On 19 Apr 2008, at 03:05, lucas samaruga wrote:<br> &gt; Hi Kas<br>
 &gt;<br> &gt; Yes, I speak Spanish, and with great difficult, English. The Spanish<br> &gt; comments are not important.<br> &gt; And yes, the seg-fault menssage is a linux menssage, not a ChucK<br> &gt; menssage (if I understood what you say).<br>
 &gt;<br> &gt; Thanks you<br> &gt; Lucas<br> &gt;<br> &gt;<br> &gt; 2008/4/18, Kassen &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt;: On 19/04/2008,<br> &gt; lucas samaruga &lt;<a href="mailto:samarugalucas@gmail.com">samarugalucas@gmail.com</a>&gt; wrote:<br>
 &gt; Hi list<br> &gt;<br> &gt; Hi Lucas!<br> &gt;<br> &gt;<br> &gt; I&#39;m working with ChucK in a musical project,<br> &gt;<br> &gt; Yay! A wise choice too, much better then ChucK for database<br> &gt; management, probably. :¬)<br>
 &gt;<br> &gt;<br> &gt; and I have a problem with the code.<br> &gt; This code generates 3 different error menssages in my machine<br> &gt; (running chuck-alsa on linux), depending on the amount of<br> &gt; components in an array.<br>
 &gt;<br> &gt; I just glanced over it but I suspect at least issue 2) is one of the<br> &gt; (new?) issues where (un)certain problems of resolving type on arrays<br> &gt; (maybe especially when using functions) leads to seg-faults.<br>
 &gt;<br> &gt; There&#39;s good news in that Ge is looking into this and I found so far<br> &gt; that in all cases where I ran into this (if it&#39;s the same thing) so<br> &gt; far we can write around it.<br> &gt;<br> &gt; Another thing worth mentioning is that ChucK shouldn&#39;t seg-fault at<br>
 &gt; all. Maybe it should kill the shred when the error happens or give a<br> &gt; error at compilation but not seg-fault and quite working altogether.<br> &gt;<br> &gt; It&#39;s rather late here and your comments are in a language I don&#39;t<br>
 &gt; speak (I think Spanish?) so I hope you&#39;ll excuse me if I don&#39;t have<br> &gt; a solution right away but that issue is likely to be fixed<br> &gt; relatively soon and I rate suspect we could work around it as well.<br>
 &gt; Just not right now :¬)<br> &gt;<br> &gt;<br> &gt;<br> &gt;<br> &gt; Yours,<br> &gt; Kas.<br> &gt;<br> &gt; _______________________________________________<br> &gt; chuck-users mailing list<br> &gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
 &gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br> &gt;<br> &gt;<br> &gt; _______________________________________________<br> &gt; chuck-users mailing list<br>
 &gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br> &gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
 <br> _______________________________________________<br> chuck-users mailing list<br> <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
 </blockquote></div><br>