Home > Archive (Community help, from old helpdesk) > Access Violation Stop()-ing a VideoCapture shortly after Start()-ing it

Access Violation Stop()-ing a VideoCapture shortly after Start()-ing it

Avatar image
Aug 23, 2015
Archive Agent wrote
Hi, if I call Start() on a VideoCapture object, then call Stop() on it before it has completed its initialization, I get a "RaceOnRCWCleanup" error, followed by an Access Violation.
In addition, the Status of the VideoCapture is either Free or Busy, so I cant find a way to know that it is initializing (in which case I could wait before calling Stop) or in error (in which case I wouldnt call Stop) so I am having a hard time finding a workaround around the access violation.
Any suggestions? Any fix for the access violation?
Thanks!
Tal

Tal Davidson on June 23, 2013 18:20
Completed
0
Vote
Reply
6 Answers
Aug 23, 2015
Archive Agent agent wrote
qakmak

yeah, that's my problem to. I'm use media player sdk.
I have submitted this problem, estimated that they are being repaired.

on June 23, 2013 18:25
Aug 23, 2015
Archive Agent agent wrote
qakmak

If you are very anxious, I suggest you temporarily use the time variable to avoid this problem.
For example:
Datetime startTime;

//when start
startTime = Datetime.Now;//get start time;
Start();//and start;

//when Stop . if you started it within 3 second, you can ignore the stop request.
if (Datetime.now - startTime < 3 second)
return;
Stop();

on June 23, 2013 18:30
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please send logs and settings to get RCW.

on June 24, 2013 14:07
Aug 23, 2015
Archive Agent agent wrote
qakmak

I think you absolutely can reproduce this problem yourself, Do not need to wait for someone else

on June 25, 2013 16:40
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Sorry, we unable to reproduce it. Please send logs and settings.

on June 30, 2013 13:07
Aug 23, 2015
Archive Agent agent wrote
qakmak

you can download new version and use it. may be your problem already fixed in current version.

on July 16, 2013 17:55