K
Kev
Rather unusual... unless Im missing something trivial
ofstream fout;
fout.open("test.txt");
fout << "My name is: " <<myname << endl;
if( fout.is_open() )
fout.close();
The result is an access violation on fout.close(). Always at 0x00000010. If
the if statement is removed so only fout.close() remains the error also
remains. If it matters its in a contructor, used to write some of the
parameters on creation.
cheers
ofstream fout;
fout.open("test.txt");
fout << "My name is: " <<myname << endl;
if( fout.is_open() )
fout.close();
The result is an access violation on fout.close(). Always at 0x00000010. If
the if statement is removed so only fout.close() remains the error also
remains. If it matters its in a contructor, used to write some of the
parameters on creation.
cheers