shellprogressbar icon indicating copy to clipboard operation
shellprogressbar copied to clipboard

Child progress bars stay forever if disposed before Tick is called on them

Open jnm2 opened this issue 4 years ago • 1 comments

It appears that I have to use this pattern:

using (var conversionProgress = rewriteProgress.Spawn(1, "Converting Windows PDB to portable..."))
{
    try
    {
        // Something that might throw
    }
    finally
    {
        conversionProgress.Tick(); // Otherwise the conversionProgress bar stays foreverup
    }
}

jnm2 avatar Mar 05 '20 14:03 jnm2

I'm less sure now because my workaround above still doesn't seem to work all of the time. There wouldn't be a problem with updating child progress bars from four concurrent tasks, would there?

jnm2 avatar Mar 05 '20 14:03 jnm2