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

Fix/issue 21 #22

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

RichardLangFromNZ
Copy link

Fix for issue #21

Wrap image grabbing from underlying c++ object in exception handler and on any exception being caught stop grabbing before re-throwing. Relieves client code of burden of explicitly having to call
stop_grabbing() on exception.

Built on top of as yet un-merged PR #17

ZacDiggum and others added 8 commits October 10, 2016 14:08
added function cam.stop_grabbing()
added property cam.is_grabbing
changed cam.grab_images(int) to infinite grabbing when int<1
changed cam.grab_images(nr_images) so that nr_images<1 -> infinite grabbing
added function cam.stop_grabbing()
added property cam.is_grabbing
check if camera.IsGrabbing() before calling camera.StopGrabbing()
…nd on any exception being caught stop grabbing before rethrowing
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

Successfully merging this pull request may close these issues.

2 participants