I did this test to see what happened:
try
{
int *x = 0;
*x = 1234;
}
catch(...)
{
cout << "OK";
}
But it throws a segfault, why does it not catch the segfault?
See Question&Answers more detail:osI did this test to see what happened:
try
{
int *x = 0;
*x = 1234;
}
catch(...)
{
cout << "OK";
}
But it throws a segfault, why does it not catch the segfault?
See Question&Answers more detail:os