Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > strange problem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 43174 of 48020
Post > Topic >>

strange problem opening ofstream

by rrsettgast@[EMAIL PROTECTED] Feb 8, 2008 at 10:24 AM

Hi all,
I am having a really odd problem. My code is spitting out a bunch of
binary files through ofstream. Actually, I have a little wrapper for
binary ofstream operations....where ofstream is a member of the
wrapper (i.e. not a derived class). At some point during the
execution, my program stops writing output files. The ofstream::open()
function is failing. The failbit is true. After the fail, I can't even
open a standard ofstream in the same function....but my ofstreams are
fine in other parts of the code. And the kicker is that when I run the
same executable through eclipse's debugger without any breakpoints,
everything works like I think it should. This is above my head. Any
suggestions would be appreciated.

Thanks
Randy
p.s. I am using g++4.2 on OSX.
 




 7 Posts in Topic:
strange problem opening ofstream
rrsettgast@[EMAIL PROTECT  2008-02-08 10:24:38 
Re: strange problem opening ofstream
"Daniel T." <  2008-02-08 14:24:36 
Re: strange problem opening ofstream
rrsettgast@[EMAIL PROTECT  2008-02-08 11:50:15 
Re: strange problem opening ofstream
"Daniel T." <  2008-02-08 16:40:58 
Re: strange problem opening ofstream
James Kanze <james.kan  2008-02-08 12:35:56 
Re: strange problem opening ofstream
rrsettgast@[EMAIL PROTECT  2008-02-11 08:32:12 
Re: strange problem opening ofstream
James Kanze <james.kan  2008-02-12 01:06:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:55:01 CDT 2008.