shellprogressbar
shellprogressbar copied to clipboard
Child progress bars stay forever if disposed before Tick is called on them
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
}
}
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?