dimmaq / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

Program doesn't stop, after starting a Pipeline #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Hit StartThreads button
2. Close application

The CancelletionToken in the tasks of the PipeLine don't get signalled when 
calling Pipeline.Cancel

What is the expected output? What do you see instead?
Program stopping

What version of the product are you using? On what operating system?
3.03b on Win7 SP1 64-bit
Delphi XE

Please provide any additional information below.
> units included: uMain and uOtlTest

Original issue reported on code.google.com by geert.gr...@gmail.com on 21 Jan 2015 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
set breakpoints in every stage. 
After hitting start, hit F9 5x (if you left the spinedit at 3, otherwise 2 + 
value in spinedit) times, because the stages will get called.

Then close the main form.

Wait for max 30 sec ... 
Delphi will stop at the breakpoints in the stages. 

The object holding the Pipeline is freed before it stops at the breakpoint ...  
   Argh ... is this the problem ???

Original comment by geert.gr...@gmail.com on 21 Jan 2015 at 10:23

GoogleCodeExporter commented 9 years ago
argh yes... !!!
it's always in the small print.

Fixed with changing 
  fPipeLine.WaitFor(1000);
into 
  fPipeLine.WaitFor(40000);

Original comment by geert.gr...@gmail.com on 21 Jan 2015 at 10:27