The simple delcaration:
ifstream file;
Is causing an unhandled exception....
Printable View
The simple delcaration:
ifstream file;
Is causing an unhandled exception....
I'm guessing here as I don't know much about C++. Isn't it ifstream file("somefile");?
Not necessarily, no.
Halsafar, reduce your test case to as little code as possible (where it still crashes) and post that. Also make sure you're using the modern version (<fstream>), not the old one (<fstream.h>).