Core Dump when closing the ifstream object- why?
I have been getting core dump when closing an ifstream object by calling ObjName.close();
Using this object, i open a file in binary mode, and read data in a fixed pattern, the same pattern in which it was written
the core dump back trace is pointing to ifs.close()
ifstream ifs(dfilename , ios::binary);
cout<<"No file with name "<<fname<<" exists!!"<<endl ;
_evN = *((int *)(num_arr));
similarly there are certain more reads in some for loops after which
i close the object :
Can you please help me in tracing out this problem.