Strange behaviour of coll object with dump (never stops reading the data)
diaseis
Jan 24 2023 | 9:38 am
Hi !
So I have this odd looking patch which essentially doesn't do anything meaningful (it's extracted from a much bigger and complex patch that I'm debugging). For now, on "dump" message, it basically removes all the elements of coll only to put them back in there right after.
However, this goes on an infinite loop : the dump message never terminates (just like if coll was streaming what it receives and dumping it instantly).
Things I noticed :
- Adding a short delay (1 ms) will prevent the looping
- Having only one item stored in the coll object (e.g. remove the message 2 2) also prevents the looping.
- Removing the "remove" message prevents the looping
So I wonder if I came across a bug or if I didn't get some subtlety about how coll is supposed to behave.
Also, a quick fix tip would be welcome :) (I tried to use the bang that coll sends when it has finished reading the data but that bang is never sent)
Max Patcher
In Max, select New From Clipboard.
In Max, select New From Clipboard.
Thanks a lot !