With csoundDestroy(), you can only destroy instances of type CSOUND* returned by csoundCreate(). While CppSound, Csound, and CsoundVST instances may not be destroyed directly, you can release most of the associated resources with the "reset" method. The Csound instance itself will eventually be freed by Python garbage collection, but you can explicitly remove the reference from the object by assignment to 'None'. Here is an example: csound = csnd.Csound() # compile and perform here # ... csound.Reset() csound = None On Thursday 08 June 2006 19:01, Simon Schampijer wrote: > does someone know what the python command is to destroy the csound instance? > I tried all the different possibilities without any luck. Am I missing > something? > > >>> import csnd > >>> csound = csnd.Csound() > >>> csnd.csoundDestroy(csound) > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib/csnd.py", line 263, in csoundDestroy > return _csnd.csoundDestroy(*args) > TypeError: in method 'csoundDestroy', argument 1 of type 'CSOPython UND *' _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net