how to delete a dict from memory ?
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.
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 … )
ok, to make my point clear, I made a small example patch below …
can anybody answer ?
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1252.3oc0Y0saihCF85jmBOb0dQZD1FHgQqzp49Q6KvNqpbBNMdJXivNMM6n 4ce+rMPHSmPJUMnzKBQXL1Ge746OyOlNIXk5YtN.8Yz+flL4GSmLw0jsgI02 OInf875bl10sfU6LFkLXl+QxcEpclbtw8PbcqkLy5sB4C2WwWa7CdJdd3LTL 18GIr4J5eqeEQlazUq99cjjlQ2OzlCkb+fDrhIeHn8cfIWHamaaa+b5T6kYu x0xZUQAWZZlNC+YGZClOeNRqPaU6QFEphWndhiDFDz+RX9xOf9qeOADddBfD SsK5H5R6e3TRuTPTy3uQIMRVgi.B9Rkfk29jpGV4ly4gc5qV7et9hIsMWVw0 vpjYDJ4I.hLOtEPg0Wt9j6RzcVtbuHOGoM1qrxRNqBIjnBfpqNf9zfYWJNxt XnowN1cItW1Ee8YWZnCBzkWI1sfq0rG3ufcef6VP5AafRnocXvDpmGOCARtL A9Ba2i1sCTmRRd0LI4cTmlbNc5mdq19ThWSf621ObLr8qAD4Ch5DuXYGFre0 INcDUm3Ec2ZGO0YLnNqCLw.o4i7C5AKKiRRcBQernKHKwKu9xxV.EOtxxFh7 u2UrhWMqkXkJyVd0u15WEZyvEvQwmv03dUvKFSEbrinoTx3pf+y6tCkIVaP4 .edL3+vctlDZCbEi8IVQh6UEmLFNWW3xzaY73lXk0kPiCVeXqB1ibz2fdnMe KnSZVfptC0uhmq1OCZjYznMBIedyPmC2rVsS5FexP2XvoNdfDsni6EJ8LaLi PFumBnOBQ8Hoc.7Eh5EOl9LNAXimOiEfDectSEaFtih5LbSBOxlm0OAcDji9 TGr0gMp9Ih.Rbi08fYqP68CrWX1BU7VvgRbklNuzqu.LZc1C0hz9YWxHT.Fs FBQiK6RA10thZcxBvRxpNLykmlsQ.vOIT6zMbs2WclPezActB7KqKYq4n4ym O3MCrWRg8oSEQV16lwHTMbKfF4MCBrY3T4V8NOChEtSZWgYP3vZgOP8aYO0J 7mgVsyfNn1g1CMXimBtZz9cTwF2CX5G8FLM90mgfDEQ7m3RDC8nPlgTarSEM JNYwxTXtJUBXzqralnO+GuSgW89fwXe30zjdCuNBEUhgB0is.5ixQdjf6Pf8 GccLKo7DXMdwVwfsRIn86FFv5KhIQ0FMNSl2Z940A65O872yZLuZ5MM3SntT QPcgb21sRQvT12nsPQvivJzZDMBsQoPYbHlfZ.1+8ndoKczpOrq+fbnQm4Hk d+TuzKVCu+nWSuNh2ysm3RJb3m4YHoSFgzE84A3pTR96MeLziinonYbuK8jO BK8aMySLNrSBwWx.kdMrPuZTrO+V9a3Xv7eXl5DS6OjK8lT0I46Av8BF47QF itjG7H+4uE6JN8rIo+FHi5hOX1yTCnlleCihpaTCoHmcOfD.72yLlJAjlr+C GOokolDvACrrN4CXW1U.ZgbeumKYqxcSVn6YNhug9cfxYw8KeLZGsYa+z8Ds ZW05lEZMAgnsKsLPaJjtPSc5i8CKiNRuaEYYbY2rWr0fAXLqEjuPb7Zgi8Kj 0Yp983AOZvw9IQtkfyhaK3DeSAmaq8paKg7skvgdasScaAmWiGYqCY7a.M9v Erxxm3U55gzADHX82UU1aSl4tUH825Fw.6Iu0z+ESsi1Om9+.A+WuGB -----------end_max5_patcher-----------
I’ve encountered the same in earlier versions of Max 6. Haven’t tried recently, though.
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 ?
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.
Forums > MaxMSP