Forums > MaxMSP

how to delete a dict from memory ?

November 8, 2012 | 4:13 pm


it may be something obvious, but I could not find the answer in the documentation, nor in the forum :
"how to delete completly a dict ?"
I mean, not only removing its content with a "clear" message, but also destroying the reference so that it does not appear anymore in the dict list when you query it with "getnames".
Even if I close the patch containing my dict instances and creating a dict objet alone in a new patch, it will still reference all the dict from my previous patch, which remained in memory.

thanks for any hint / method to achieve that.

November 8, 2012 | 11:34 pm

bump ! bump ! bump !
nobody can answer me ? Cycling74 fellows, please help !

(or at least tell me : "No, that’s not possible at the moment. Maybe in a future release" … so that i know … )

November 12, 2012 | 4:54 pm

ok, to make my point clear, I made a small example patch below …
can anybody answer ?

– Pasted Max Patch, click to expand. –

November 12, 2012 | 6:01 pm

I’ve encountered the same in earlier versions of Max 6. Haven’t tried recently, though.

November 12, 2012 | 8:06 pm

Thanks for your reply, Peter.
It seems like it could just be a missing command to the dict object… something like an "erase [DictName]" command.
C74 team ?

November 20, 2012 | 8:25 pm

I repost the reply from C74 support in case anyone face the same problem :

There is currently no way to delete a dictionary completely from a patcher. There is a way to do it from JS, using the freepeer() method.
You can use freepeer if the dicts were created in JS, but if they are a max dict box, then there will always be a dictionary present. Possibly randomly named. In general we’d recommend that you manage your own list of dictionaries to present to the user rather than relying on the global dictionary list for presenting a user interface. There’s nothing that we guarantee about using that global list of named dictionaries for such purposes.

Viewing 6 posts - 1 through 6 (of 6 total)