How do you handle a segmentation fault in C++?

Nguyên Lê

New member
How do you handle a segmentation fault in C++?
Answer
6 Answers. C++ try-catch blocks only handle C++ exceptions. Errors like segmentation faults are lower-level, and try-catch ignores these events and behaves the same as if there was no try-catch block. try/catch only catches C++ exceptions.
 

Tìm kiếm

Back
Top