Code Monkey home page Code Monkey logo

Comments (5)

goblinfactory avatar goblinfactory commented on June 4, 2024

ooh, nice find! looking at this now, thank you for the feedback...

from konsole.

goblinfactory avatar goblinfactory commented on June 4, 2024

Hi @Darida ;

If you can please give me a small sample of it breaking then I can write an acceptance test to add this to the code and fix it.

I believe the workaround for this (for now) is to create all the progress bars using a single thread and pass the 'created' progress bars to your threads doing any processing as a parameter, rather than having each separate thread create their own progress bar.

I can't confirm this workaround will work for you without a bit of sample code. A small sample will also help me make sure the fix I'm about to commit will definitely work for you.

For an example on multiple threads accessing ProgressBar checkout ProgressBarDemos.cs

If you want to play with the examples I've written, the solution is really easy to check-out and build.

git clone https://github.com/goblinfactory/konsole.git

After cloning the project, right click on Konsole.Sample project and set as startup project, and press F5, ...you'll get a menu with demos (see below) , press 'l' for the parallel thread demo.

screen shot 2017-03-20 at 11 49 58

Thanks, Alan

from konsole.

goblinfactory avatar goblinfactory commented on June 4, 2024

@Darida No worries, I have a test that reproduces the problem; fix is on the way...

from konsole.

goblinfactory avatar goblinfactory commented on June 4, 2024

fix and test committed. will push a new package a bit later.
Here's test proving fix works

from konsole.

goblinfactory avatar goblinfactory commented on June 4, 2024

I will close issue as soon as new package has been published to nuget.

from konsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.