On Monday 06 February 2006 20:55, Rory Walsh wrote: > Can anyone see why this code will cause a crash if I try to call the > Button1Click method a second time after letting csound perform the .csd > file once through? I wait several seconds and then I try it again but I > get a crash? Are you sure that the thread has really stopped by the time you call Button1Click() again (you can call csoundJoinThread() to wait on the thread until it exits; this also cleans up any resources associated with the thread by the OS) ? Is it possible that the Csound instance was destroyed, or cmdl was freed somehow before creating the thread the second time ? ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net