I imagine the ThreadPoolJobWithProgress
is getting deleted when the runTaskWithProgressBar
function returns?
Do you have to make this non-modal now?
I appreciate modal loops are bad and we should not be using them in new code but this codebase has relied on them for 20 years so it’s not simple to just remove them. We’ll probably need to add alternative methods that request a task to be started and provide a callback to be notified when it ends.
There might be some way to hack it in the mean time but I don’t really have the bandwidth to look in to it right now I’m afraid.