culmer@grad1.cis.upenn.edu (08/13/89)
This might be just a C language question, but I figure I can cover all of the bases by asking the question first in this newsgroup. I sometimes get segmentation violations when function calls (without any return values) return. (The error definitely occurs between my last line of the function and my first line of the calling function after the call.) I can't account for this with my knowledge of C, segmentation, the stack, and the heap. I have experienced the same problem sometimes when I declare a pointer to a structure in the function but forget to allocate space for the structure. Even then, I don't understand why the segmentation violation occurred when the function returned if I was able to make assignments to the members of the "structure" without a segmentation violation. Thanks in advance. Charles W. Culmer culmer@grad1.cis.upenn.edu Truth, justice, and the Canadian way