Long running task

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

Hi Yan,
there’s no support for async tasks in VSTGUI for plug-ins. You’ve to roll your own.

Cheers,
Arne