M
Micha³ ¦liwka
Hi,
I want to use set_terminate and set_unexpected to control errors in my
program, but it seems that theese two functions don't do anything whet MFC
is in use.
Have you got any idea?
I searched the net and found only that people from Microsoft don't like to
talk about it.
I'm using MSVC 7.1.
-------------------------------------------
void term_func()
{
AfxMessageBox("term_func");
exit(-1);
}
void unexp_func()
{
AfxMessageBox("unexp_func");
terminate();
}
void foo()
{
std::set_terminate(term_func);
std::set_unexpected(unexp_func);
throw "dfkjhgf";
}
-------------------------------------------
TIA
Regards,
Micha³ ¦liwka
I want to use set_terminate and set_unexpected to control errors in my
program, but it seems that theese two functions don't do anything whet MFC
is in use.
Have you got any idea?
I searched the net and found only that people from Microsoft don't like to
talk about it.
I'm using MSVC 7.1.
-------------------------------------------
void term_func()
{
AfxMessageBox("term_func");
exit(-1);
}
void unexp_func()
{
AfxMessageBox("unexp_func");
terminate();
}
void foo()
{
std::set_terminate(term_func);
std::set_unexpected(unexp_func);
throw "dfkjhgf";
}
-------------------------------------------
TIA
Regards,
Micha³ ¦liwka