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

pure virtual method called #1

Open
jthomasExyn opened this issue Feb 21, 2018 · 1 comment
Open

pure virtual method called #1

jthomasExyn opened this issue Feb 21, 2018 · 1 comment

Comments

@jthomasExyn
Copy link

I've noticed that there is a non-deterministic situation where the remaining unread frames are (presumably) already destructed when stopping the camera manager. The following line throws the error "pure virtual method called"

frame_queue_[ii].frame_->releaseRef();

Are the frames destructed when the listener is removed in the Terminate() method? Perhaps they are destructed when preview is stopped in the Stop() method? Is it necessary to release the references at all?

@jthomasExyn
Copy link
Author

I'll follow up with a bit more that I've discovered. It seems as though the call to stopPreview() is the call that is freeing the frames

camera_ptr_->stopPreview();

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

No branches or pull requests

1 participant