Help with Illegal operation in audio thread: asyncUpdater call
-
Hey guys,
I'm trying to roll my own "midi learn" button to change a combo box on a script processor.
The code I'm using to set the script processor combo is causing an asyncUpdater error.
I saw there was a thread about deferring callbacks to cure this issue, but the link @Christoph-Hart posted was dead.Here's what I'm doing:
HiseSnippet 1343.3oc6WslaaaDDlTwLnZSUPBZO.DtEEx.I1T9MPfQjnjnpQiSDpRMJxeBnnVYSXpcEHWkZgfbS5u64nGobCZ+F9Pj5gcbTaAJJpvPM6Nyry9sy9X1sanziGEIC0zK+5oi4Z5eoQuoB0kMuz0WncZKM8GZblajhGZlHxd5X2nH9.Mc860gDnWdCs3ee741tAtBOdtHMsyk9d7W3OxWkKsa8evOHvwc.+09iJX890O0SJZJCjS.dtmgk1XWuqbuf+RWxrRFZ52u8.ekLrmxUwifM1xAS6co7WDI1eteje+.NUolVO3nDwZMuzOXP2rwZjll9FcyG42KYj+0Fm4Ovel77HvihUXl2hhw.8RyCoMlCR0tIH4HCFPN3FfWoBvaiD38Xiddg9iU4ZHr8UoRyQWs4fWhVM8e0vb3DgmxWJLkhWJU7WIptE68rxrOvVR0vgqTWSoPEJCB3gqTMMaFdaMrpXxn97vmX9N2fI7YFhg37wP1cKFhEKJtPUvPo3Tgu5Ui4ypmLRyjXoMa.VTT93pnz3gyJLKWzxSbZMSvDlB0SMGlphm.eT5TUS4n9Ra40Z9CxmUyDVSKN1juovtt1OcZKWkalKg2QONlGp7oXkdK96vVrj0HkMZwitRIGGa6nwRAgE86+YAfqy67uu9z7JeW8QtPmg90nhuhOJRqzuoaz7o0XM+F7WK5iJzFeNzGUoC8QEZPeTAaXuEZhEqEHvZawb.gRc.AVCPfYCqHeC2RdFNF9jbK7H4T3OxkIdbWX3trVf.q8tLGPnTGPf0.DX1vp8fg6wZABr16wb.gRc.AVCPfYCq1GFtOqEHvZuOyADJ0ADXM.AlMr5.X3ArVf.q8ALGPnTGPf0.DX1vpCggGxZABr1Gxb.gRc.AVCPfYCqNBFdDqEHvZeDyAD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