J
Jim Strathmeyer
Under what circumstances would closing a istream object (such as
'in.close()') SEGFAULT?
'in.close()') SEGFAULT?
Under what circumstances would closing a istream object (such as
'in.close()') SEGFAULT?
When you have a bug in your program. What else?
All the usual suspects, writing past he end of an array, writing through a
garbage pointer, freeing the same memory twice, etc. etc. All these bugs
can cause anything to happen.
Bugs rarely have any logic. You can rarely say 'well the symptom is this,
therefore the bug must be that', at least that sort of intuition only
comes with much experience.
Strathmeyer said:...right... but why would a SEGFAULT happen inside a library function?
Jim Strathmeyer said:...right... but why would a SEGFAULT happen inside a library function?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.