Memor fault, Core dump

John Gordon gordon at osiris.cso.uiuc.edu
Wed May 22 07:01:55 AEST 1991


	If you expect people to spend time debugging someone else's code, you
could at least provide the code, not just an explanation of what it does.

But anyway: Whenever you get a memory fault error, it means that your
program was trying to access memory that it did not own.  This almost always
means that you are accessing an element of an array that is out-of-bounds,
or a pointer is pointing to the wrong place.  Make sure that the array you
are strcat()'ing into is big enough.  Make sure that the arguments to
fprintf() are in the right order.


---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon at cerl.cecer.army.mil       #include <clever_saying.h>



More information about the Comp.lang.c mailing list