This is probably the most frustrating thing in c++ for me. I can handle compile errors just fine, but when I get a core dump, I get so frustrated, because I have no idea where the problem is, especially when I have 300+ lines of code to be looking at.

Although I have fixed it before, I guess I don't quite understand what it is or why its exactly happening. Could someone give me a decent explanation, and some tips on troubleshooting this prob.

Recommended Answers

All 2 Replies

A segmentation fault is when you access memory that doesn't belong to you. Usually it results from dereferencing a pointer that doesn't point where you expect, or indexing an array out of bounds.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.