Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

exception thrown on file open #13

Open
rconde01 opened this issue Aug 14, 2016 · 0 comments
Open

exception thrown on file open #13

rconde01 opened this issue Aug 14, 2016 · 0 comments

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();

...pull request to come.

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

No branches or pull requests

1 participant