<br><div>Andrew Hassal wrote:</div><div><br></div><div>&gt;&gt; I&#39;m writing 2 externals that implement an LPC algorithm, to make the<br>&gt;&gt; results as acurate as possible I need to record some values from the<br>&gt;&gt; previous frame, I&#39;ve found that after doing this I sometimes as far as<br>
&gt;&gt; I can tell randomly get the output values of nan (for the values in<br>&gt;&gt; the output signal vector) </div><div>...</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">&gt;&gt; It happens at random times but it seems that I can make it happen<br>
&gt;&gt; when I open a patch with a graph in it (whilst the signal is running)</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div>
<div><br>Did you already find the answer? The fact that the problem specially arises when you open a patch with a graph in it, may indicate that your code is accessing memory locations which are not allocated to it. Stand alone executables would by definition exit with segmentation fault, but with Pd externals I have experienced more than once that the problem was only revealed in a conflict with another object in the Pd process, notably when using multiple instances of the newly written class.</div>
<div><br></div><div><br></div><div>Katja </div>