A possible solution is to free all inactive instr spaces except `csound->curip'. It is safe and without memory leaks. diff -ur csound5~/Engine/insert.c csound5/Engine/insert.c --- csound5~/Engine/insert.c 2012-03-24 22:15:55.000000000 +0100 +++ csound5/Engine/insert.c 2012-03-24 22:16:51.000000000 +0100 @@ -676,7 +676,7 @@ prvip = NULL; prvnxtloc = &txtp->instance; do { - if (!ip->actflg) { + if (!ip->actflg && ip != csound->curip) { cnt++; if (ip->opcod_iobufs && ip->insno > csound->maxinsno) mfree(csound, ip->opcod_iobufs); /* IV - Nov 10 2002 */ tito ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net