Originally Posted by 2kaud The catch clause should be by ref: Code: catch (std::ifstream::failure& e) I did it but the issue was not fixed... By the way if I remove the line: Code: //Set exception mask for file stream. file.exceptions(std::ifstream::failbit | std::ifstream::badbit); then this access violation is not been thrown.
catch (std::ifstream::failure& e)
//Set exception mask for file stream. file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
Last edited by babaliaris; August 28th, 2020 at 10:27 AM.
My GitHub Profile
View Tag Cloud
Forum Rules