this.patcher.remove crashing

shaun's icon

hey,

I'm using javascript to add some textedit and number boxes to a patch.

I want to be able to delete them individually so I added a toggle into a funnel object which then triggers a function to delete the correct text and number boxes.

Problem is it keeps crashing randomly and after removing loads of the patch the delete function still crashes.

patch and js file attached.

Thanks

Shaun

PatchBuilderv2.js
js 1.39 KB

Max Patch
Copy patch and select New From Clipboard in Max.

Simon Pratt's icon

Hi Shaun,

Did you ever find out why this happened? I am experiencing a similar situation.

Thanks