You can register a destructor in the init function (diskin2 should have an example of this). ----- Original Message ----- From: jpff@cs.bath.ac.uk Date: Friday, September 23, 2011 7:27 pm Subject: Re: [Csnd] Best way to send Table values over OSC To: csound@lists.bath.ac.uk > It looks as if there is no code to remove listeners. I > think I was > expecting people would have universal instruments for > this. Staring at > the code but not sure where to fix. Looks like the need > for a destructor. > > ==John ff > > > I rewrote my code so a lot of the work is done by just one > instrument. I > > don't know how the OSCSend works in Csound, but It seems > that every time > > the instrument that sends the OSC messages is called it instantiates > > another > > OSC sender that is not removed when the instrument is > turned off. When > > the > > amount of instantiated OSC senders reaches 242 it seems to run > out of > > memory > > and just stops working. > > Ed > > > > On 23 September 2011 13:15, wrote: > > > >> > >> > I > >> > thought this way would work properly but strangely it stops > working>> > exactly > >> > after 242 calls of the OSCSend instrument, this also > happens if I just > >> > send > >> > 8 values instead of 16. I found this error in the console > when it > >> stopped > >> > working: > >> > > >> > qutecsound-f[1022]: dnssd_clientstub deliver_request: socketpair > >> failed > >> 24 > >> > (Too many open files) > >> > > >> > QuteCsound also cannot save any changes to open files after this > >> error. > >> > > >> > > >> > >> This looks odd but interesting. Too many open files > woriesme as I would > >> not expect any files to be opened. Can you remind me > which platform > >> this > >> is? I am fairly sure that the Csound/OSC code does not > open files, so > >> either liblo is or your code is.... > >> > >> ==John ff > >> > >> > >> > >> Send bugs reports to the Sourceforge bug tracker > >> https://sourceforge.net/tracker/?group_id=81968&atid=564599 > >> Discussions of bugs and features can be posted here > >> To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe>> csound" > >> > >> > > > > Send bugs reports to the Sourceforge bug tracker > > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > > Discussions of bugs and features can be posted here > > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe> csound" > > > > > > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music, National University of Ireland, Maynooth Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"