I was wondering if you guys could clue me in to something. I know that segmentation faults are caused when the program tries to access memory that is not allocated for the program. However, I have a function call that is causing a segmentation fault. When I run gdb, it says that there is a segmentation fault at the line where the function call is. I know its not inside the function because of what gdb says. I made sure that everything was being passed to the function correctly, and that all the variables were declared corectly.