I am using ifstream to process a large obj file (~23 MB) and it failed (fin.fail()) at run time after about 1000 lines processed (traced using gdb). I was compiling using -pg options for profiling. It does work correctly without the -pg option, though. Does anyone know what is the problem? How can I solve this problem?
I was developing on a Linux Ubuntu 9.04 machine with gcc 4.3.3.