Original Post
im trying to force a flush after each line in my debug file, but its not working ofstream the_log_file; // ios::out std::stringstream stream; stream << "..[" << g_OS.timer.return_totalticks_NOW() << "] " << msg << endl; the_log_file << stream.str(); the_log_file.flush(); and the end of the file output is blah blah ..[4240] loading material template HUD_icons.xml ..[4254] loading material template HUD_icons_hilights.xml ..[4254] loadin the crash occurs about 5 seconds after '..[4254] loadin' so somehow its not flushing after each line what have i missed? ta zed [Edited by - zedzeek on January 31, 2006 4:18:18 PM]