I am working on a program(C++) where we use ofstream to write to a file, however when the call to ofstream is made, it trashes a portion of memory. I wanted to know if anyone else had experienced anything like this...

ofstream stream("file",ios::binary);


An thoughts? it is on a amd64 dual core with suse 10.1.

-mark