Change YASim solution failure message to display as an alert; but not to call exit().
It is the call to exit that causes FG to lock up and become a zombie. Alternative is to throw an exception, i.e.: throw sg_error(std::string("YASim SOLUTION FAILURE:") + a->getFailureMsg(););
This commit is contained in:
parent
7b7e50741f
commit
10caef48b1
1 changed files with 2 additions and 3 deletions
|
@ -77,9 +77,8 @@ void YASim::report()
|
|||
SG_LOG(SG_FLIGHT, SG_INFO, buf);
|
||||
|
||||
if(a->getFailureMsg()) {
|
||||
SG_LOG(SG_FLIGHT, SG_ALERT, "YASim SOLUTION FAILURE:");
|
||||
SG_LOG(SG_FLIGHT, SG_ALERT, a->getFailureMsg());
|
||||
exit(1);
|
||||
SG_LOG(SG_FLIGHT, SG_POPUP, std::string("YASim flight dynamics problem:") + a->getFailureMsg()+"\nThe aircraft may not fly correctly");
|
||||
//throw sg_error(std::string("YASim SOLUTION FAILURE:") + a->getFailureMsg(););
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue