Wednesday, 30 November 2016

Incrementing Progress Bar From a ForEach Loop

A deceptively simple question – how do you update a progress bar from a ForEach loop – popped up on the Google+ OmniThreadLibrary community. The implementation turned out to be quite tricky so this is an explaining example created by Primož Gabrijelčič (55_ForEachProgress) which is now part of the OmniThreadLibrary SVN repository. The starting point was a simple Parallel.ForEach loop which he further...

Monday, 28 November 2016

Message Queue with a TThread Worker Using OmniThreadLibrary’s

A simple example, now part of the OTL repository (stored in the folder examples\TThread communication).Two separate topics are covered in this example: Sending data from any thread (main or background) to a TThread-based worker. Sending data from a TThread-based worker to a form. Let’s deal with them...