Page 1 of 1

Long running task

Posted: Sun Jul 26, 2020 6:36 pm
by pongasoft
Hi

I have a task (resampling in this case) that happens after the user clicks on some button. I was wondering what is the recommended approach to handle a task like this which is going to take a while to complete in order to prevent the UI to be frozen while it happens. I have done GUI work in the past (like Android) and usually you can spawn a thread or similar to do that and then when complete you can post a message to the main UI queue.

How would this work with VSTGUI?

Thanks
Yan

Re: Long running task

Posted: Mon Jul 27, 2020 12:43 pm
by Arne Scheffler
Hi Yan,
there's no support for async tasks in VSTGUI for plug-ins. You've to roll your own.

Cheers,
Arne