Skip to content
Snippets Groups Projects
Commit f4839eac authored by Mirko Wächter's avatar Mirko Wächter
Browse files

RemoteRobot: destructor was not exception safe

parent b1506fcc
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,19 @@ RemoteRobot::RemoteRobot(SharedRobotInterfacePrx robot) :
RemoteRobot::~RemoteRobot()
{
_robot->unref();
try
{
_robot->unref();
}
catch(std::exception &e)
{
ARMARX_DEBUG_S << "Unref of SharedRobot failed: " << e.what();
}
catch(...)
{
ARMARX_DEBUG_S << "Unref of SharedRobot failed: reason unknown";
}
}
/*Matrix4f RemoteRobot::Pose2Matrix4f(PosePtr p){
......
......@@ -53,7 +53,18 @@ void RemoteRobotNodeInitializer<VirtualRobot::RobotNodeFixed>::initialize(Remote
template<class RobotNodeType>
RemoteRobotNode<RobotNodeType>::~RemoteRobotNode(){
_node->unref();
try
{
_node->unref();
}
catch(std::exception &e)
{
ARMARX_DEBUG_S << "Unref of SharedRobotNode failed: " << e.what();
}
catch(...)
{
ARMARX_DEBUG_S << "Unref of SharedRobotNode failed: reason unknown";
}
}
template<class RobotNodeType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment