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

Improper exception thrown on file open #13

Open
rconde01 opened this issue Jul 24, 2023 · 0 comments · May be fixed by #14
Open

Improper exception thrown on file open #13

rconde01 opened this issue Jul 24, 2023 · 0 comments · May be fixed by #14

Comments

@rconde01
Copy link

FFStream::init calls close. If a file is not open, this close call fails. In a default configuration this is not a problem. However, if you set the stream to throw exceptions on fail, then you get an exception when opening a file.

The solutions is to change the code to:

if(is_open())
   close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant