crash with return dict in js
Hey, I was testing the pattr to js with the functions getvalueof and setvalueof and I don't know what I'm doing wrong.
My code inside the js object is only:
function getvalueof(){
var saveDict = new Dict("test");
return saveDict;
}
I can save the code and the patch with no issue and even reload the patch, but when I close Max and open the patch, it crashes. I can only open the patch by opening a copy of my patch without the js object and then opening the current patch (with the js object).
I can only re-open my project if I delete the return line.
But if I don't close Max, I can use the js code and it works fine.
Help please!
Thanks!
I can't reproduce in a simple patch, can you post your patch and js?
Ben
I keep testing and I think I found what it can be.
In the patch I had another pattr object connected to a jsui object. This is what made it crash when loading.
Probably I need to address the pattr thing inside the jsui object too...