If you see an error message that can be useful to include in a post like this as well as well. Anyway, <span style="font-family:arial,sans-serif;font-size:13px">oeGetProcessId is probably null or some other void state when you try to reference it.</span><div>
<br></div><div><font face="arial, sans-serif">Remove the '@' from "</font><span style="font-family:arial,sans-serif;font-size:13px">OscEvent @ oeGetProcessId" and it will probably work. Compare with the example "</span>OSC_recv.ck".</div>
<div><br></div><div>/Stefan</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 4:38 PM, Simon Steptoe <span dir="ltr"><<a href="mailto:simonsteptoe@yahoo.co.uk" target="_blank">simonsteptoe@yahoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Whilst working on some OSC stuff, I got to a situation where Chuck<br>
(and mini-Audicle) kept crashing at the end of the main shred.<br>
<br>
I've stripped out all the Ugens and synthesis stuff and am left with<br>
the following algorithm (see below) as the culprit. At the end of the<br>
5 seconds duration of the main shred, Chuck crashes. Take out<br>
"oeGetProcessId => now;" and all is fine.<br>
<br>
Now aside from whether it's a viable/good piece of code or not, I was<br>
surprised that it goes so far as to crash the system.<br>
<br>
Is it a bug... or is it me? (Code below).<br>
<br>
Simon Steptoe<br>
<br>
//CODE ==============================================<br>
OscRecv RecvProcess;<br>
32000 => RecvProcess.port;<br>
RecvProcess.listen();<br>
RecvProcess.event("/process/id, i " ) @=> OscEvent @ oeGetProcessId;<br>
<br>
Shred oscProcess;<br>
<br>
spork ~ oscProcessingIt() @=> oscProcess;<br>
5::second => now;<br>
<br>
fun int oscProcessingIt()<br>
{<br>
    int testValue;<br>
    while (true)<br>
    {<br>
        oeGetProcessId => now;<br>
        if( oeGetProcessId.nextMsg() != 0)<br>
        {<br>
            oeGetProcessId.getInt() => testValue;<br>
            <<<"Hello from PROCESSING: ",testValue>>>;<br>
        }<br>
        0.1::second => now;<br>
    }<br>
}<br>
//============================================<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Simon Steptoe<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" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>