To: djgpp AT delorie DOT com Subject: Page Faults Message-ID: <19961129.012507.8439.1.aclemmer@juno.com> From: aclemmer AT juno DOT com (Aaron M Clemmer) Date: Thu, 28 Nov 1996 13:27:41 EST I'm using DJGPP v2. A function I'm coding keeps generating page faults. So I checked out the FAQ, and tried the suggestion of setting the `_CRT0_FLAG_NULLOK' bit in `_crt0_startup_flags' in my main() funtion. It didn't stop the page faults. Here is the function that is doing this: (matrix is just a typedef for an array, vector is a structure, FixedMul is inlined) void xform_vector(matrix m, vector svect, vector *result) { result->x = FixedMul(m[0][0], svect.x) + FixedMul(m[0][1], svect.y) + FixedMul(m[0][2], svect.z) + m[0][3]; ... (more of the same) } And I'm calling the code like this: (cube is an array of vectors) xform_vector(transmatrix, cube[i], &vtemp); Any ideas of what is going on? Aaron