Open GoogleCodeExporter opened 8 years ago
[deleted comment]
in this case I use System.Threading.Timer like that:
dev.Start(); // start capture device
tm = new Timer(new TimerCallback(tm_Tick), dev, waitLimit_AForge, Timeout.Infinite); // start timer
dev.WaitForStop();
tm.Dispose(); // stop timer
Method tm_Tick do: dev.SignalToStop();
I have timeout 10sec
Original comment by mtester...@gmail.com
on 17 Jan 2012 at 9:16
Stop() method should abort thread.
Are you sure you don't have any dead locks in your UI? Sometimes this is a case
for issues like yours.
Check that you don't have something like this: from UI you select Stop ->
camera thread tries to stop -> before exiting, the camera thread fires
PlayingFinished event -> your PlayingFinished event handler tries to update UI
-> since UI is busy by calling Stop you get a dead lock.
Simple pause your application when running in debug mode and check what each
thread does and check callstacks.
Original comment by andrew.k...@gmail.com
on 25 Jan 2012 at 9:44
Thanks, Andrew.
I had the same issues and your solution was spot on: UI deadlock ...
BTW: I have extended your 2.2.5 version with IPausableVideoSource (Pause method
and IsPaused property) for filevideoSource and VideoCaptureDevice, and the
player with the same method. Drop me a mail if interested!
Original comment by Yves.Van...@gmail.com
on 17 Jan 2014 at 5:33
Hello Yves,
This might be interesting. You may create a "Contribution" code with a patch
attached.
Regards,
Andrew
Original comment by andrew.k...@gmail.com
on 20 Jan 2014 at 8:54
Hello Yves,
I'm trying to do the same thing, I will be very happy if you share your
solution!
Best regards!
Marco
Original comment by mortisgo...@hotmail.com
on 28 Mar 2014 at 3:33
Original issue reported on code.google.com by
ad...@activeunlimited.com
on 7 Jan 2012 at 1:04