Hi, I have been working on a profiler project for class for a few weeks now. A few days ago I ran into an error when running the program saying - Segmentation fault (Core dumped). I have asked around and still not able to figure it out.
Here is the method I believe is causing the fault.
I don't see anything wrong with this code. It's possible that the problem is actually elsewhere and it just doesn't show up until you hit this code. That's the nasty thing about heap corruption. The symptom is in New York but the cause is in Kansas.