<html><body bgcolor="#FFFFFF"><div><blockquote type="cite"><div><br></div></blockquote><div></div><blockquote type="cite"><div>

<div><font face="Tahoma" size="2">I'm attempting to read from&nbsp;an input, process 
with a delay, and output in realtime and my program stops when delay->tick is 
called with an&nbsp;"access segmentation" or memory error.&nbsp; I'm on Windows 
XP, using ASIO only.&nbsp; I have been able to successfully use the Duplex 
program which uses memcpy to copy the inputBuffer to outputBuffer.&nbsp; I've 
tried different classes including Chorus but with the same result.&nbsp; I 
apologize in advance if I'm missing something simple, but I've poured through 
all the documentation and examples I could find.</font></div>
<div><font face="Tahoma" size="2"></font>&nbsp;</div>
<div><font face="Tahoma" size="2">Thanks,</font></div>
<div><font face="Tahoma" size="2">Ben</font></div>
<div><font face="Tahoma" size="2"></font>&nbsp;</div>
<div><font face="Tahoma" size="2">int tick( void *outputBuffer, void *inputBuffer, 
unsigned int nBufferFrames,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
double streamTime, RtAudioStreamStatus status, void *dataPointer 
)<br>{<br>&nbsp;Delay *delay = (Delay *) dataPointer;<br>&nbsp;StkFloat 
*oSamples = (StkFloat *) outputBuffer;<br>&nbsp;StkFloat *iSamples = (StkFloat 
*) inputBuffer;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<br>&nbsp;&nbsp;&nbsp; for ( int i=0; i&lt;nBufferFrames; i++ 
)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *oSamples++ = 
delay->tick(*iSamples++);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<br>&nbsp;return 0; <br>}</font></div>
</div></blockquote></div><div></div></body></html>