H
hbdevelop1
Hello all,
I am using Cygwin64 under windows 8, and gcc-g++ ver. 4.8.1-3
I get the following crash with the code below:
$ ./a
inside try block
Segmentation fault (core dumped)
int main()
{
try
{
cout<<"inside try block\n";
throw "A failure!";
}
catch( char * str )
{
cout<<"inside catch block\n";
cout << "hException raised: " << str << '\n';
}
cout<<"outside everything\n";
return 0;
}
Does anybody have a clue why the exception do not work properly ?
Thank you in advance
I am using Cygwin64 under windows 8, and gcc-g++ ver. 4.8.1-3
I get the following crash with the code below:
$ ./a
inside try block
Segmentation fault (core dumped)
int main()
{
try
{
cout<<"inside try block\n";
throw "A failure!";
}
catch( char * str )
{
cout<<"inside catch block\n";
cout << "hException raised: " << str << '\n';
}
cout<<"outside everything\n";
return 0;
}
Does anybody have a clue why the exception do not work properly ?
Thank you in advance