S
Sheldon
Hi everyone,
I have a fairly large program that has a problem that I cannot seem to
solve.
The program runs smoothly but when it tries to free allocated memory
before exiting I get a segmentation fault.
I have checked many times the following:
1. That I have not freed the memory before hand and call free this
way: if(array) free(array);
2. The arrays are vectors that was allocated with error checking:
if(mem == NULL)...
3. There are no conflicts like a double definition of a variable.
4. Variables are assigned in structs
But still there I get his error. Can anyone offer some advice on what
may be the problem?
The code is nearly 1000 lines long. I can post it if anyone wants to
look at it or I can send it via email.
I would greatly appreciate any help with this problem.
/S
I have a fairly large program that has a problem that I cannot seem to
solve.
The program runs smoothly but when it tries to free allocated memory
before exiting I get a segmentation fault.
I have checked many times the following:
1. That I have not freed the memory before hand and call free this
way: if(array) free(array);
2. The arrays are vectors that was allocated with error checking:
if(mem == NULL)...
3. There are no conflicts like a double definition of a variable.
4. Variables are assigned in structs
But still there I get his error. Can anyone offer some advice on what
may be the problem?
The code is nearly 1000 lines long. I can post it if anyone wants to
look at it or I can send it via email.
I would greatly appreciate any help with this problem.
/S