Talk About Network



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 > Codewarrior Windows > Re: writing to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 244 of 318
Post > Topic >>

Re: writing to a non-open file crashes

by "SiamGod" <ed.woods@[EMAIL PROTECTED] > Jan 18, 2005 at 05:42 AM

I put in
check(Metrowerks::msl_settings());
nothing happened.

I tried
Test << " asdf" << 1;

no problem

Test << endl;
crashes with a call stack . The last function was bufferedbuf(...)::
write_buf()
on the line right after the while()
count = write_chars(uncbeg_, uncnxt_ - uncbeg_)

when I step into write_chars it calls fread(buf,1, n, file_)
and file_ is NULL.  Stepping into the assembly, i get to a point where
it calls
ntdll.dll and crashes.

I hope this is enough locate the problem.

Ed




 5 Posts in Topic:
writing to a non-open file crashes
"SiamGod" <e  2005-01-17 13:07:56 
Re: writing to a non-open file crashes
Howard Hinnant <hinnan  2005-01-17 21:58:56 
Re: writing to a non-open file crashes
"SiamGod" <e  2005-01-18 05:42:14 
Re: writing to a non-open file crashes
Howard Hinnant <hinnan  2005-01-18 19:36:36 
Re: writing to a non-open file crashes
"SiamGod" <e  2005-01-18 14:10:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat May 17 2:29:10 CDT 2008.