Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in videoio crash while releasing capture #13798

Open
fogelton opened this issue Feb 11, 2019 · 1 comment
Open

bug in videoio crash while releasing capture #13798

fogelton opened this issue Feb 11, 2019 · 1 comment

Comments

@fogelton
Copy link

fogelton commented Feb 11, 2019

  • OpenCV => 4.0.1
  • Operating System / Platform => Windows 7 64 Bit
  • Compiler => Visual Studio 2017

when calling capture release, sometimes it crashes when the app is going to quit and the debugger stops in file cap_dshow.cpp, the problem is that it happens only from time to time, hard to reproduce. When the release is called without app quitting, it is OK all the time. Some resources are already deleted?

videoDevice::~videoDevice(){
    if(setupStarted){ DebugPrintOut("\nSETUP: Disconnecting device %i\n", myID); }
    else{
        if(sgCallback){
            sgCallback->Release();
            delete sgCallback;
        }
        return;
    }

    HRESULT HR = NOERROR;

    //Stop the callback and free it
    if( (sgCallback) && (pGrabber) )
    {
        pGrabber->SetCallback(NULL, 1);
        DebugPrintOut("SETUP: freeing Grabber Callback\n");
-->        sgCallback->Release();
@March0912
Copy link

So, has this problem been fixed in the new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants