I have been debugging this patch for a week and can't solve the problem so your help would be greatly appreciated. I included the small portion which gives me problems and gave you the algorithmic outline.
I am trying to dynamically load a buffer~, get its informations and then save them in a coll object. When the object is not in overdrive all works fine, but when I use it in overdrive, a bug occurs near the end. It has to do with a script disconnect. I can't get it. Something do to with scheduling as the order of my patch seems correct when I trace enable.
Here is the outline of the algorithme:
1. Create new buffer for soundfile and connect it
2. Set the info~ object to match the new buffer~.
3. Load the buffer~ and get the infos from info~
4. Load the infos in a coll
5. Disconnect and bang when done.
So here is the patch in question, followed by another patch I use to test it. The second patch includes all the results I have got from my tests.
I really would appreciate some help. It's a though one for me and I am starting to think this is a MAX/MSP bug. (by the way, I had to include a (del 5) in order to circument annoying check failed errors. Man! I hate when programming has to involve hacks because the language is faulty.