Revision: 6732 http://playerstage.svn.sourceforge.net/playerstage/?rev=6732&view=rev Author: natepak Date: 2008-07-02 10:55:54 -0700 (Wed, 02 Jul 2008)
Log Message: ----------- Added more debugging Modified Paths: -------------- code/gazebo/trunk/libgazebo/Client.cc code/gazebo/trunk/player/GazeboClient.cc Modified: code/gazebo/trunk/libgazebo/Client.cc =================================================================== --- code/gazebo/trunk/libgazebo/Client.cc 2008-07-02 17:28:30 UTC (rev 6731) +++ code/gazebo/trunk/libgazebo/Client.cc 2008-07-02 17:55:54 UTC (rev 6732) @@ -60,7 +60,15 @@ // Test for the presence of the server void Client::Query(int serverId) { - this->SemQuery(serverId); + try + { + this->SemQuery(serverId); + } + catch (std::string e) + { + std::cerr << "Error[" << e << "]\n"; + exit(0); + } } //////////////////////////////////////////////////////////////////////////////// @@ -92,7 +100,15 @@ // Initialize semaphores if (this->clientId >= 0) { - this->SemInit(); + try + { + this->SemInit(); + } + catch (std::string e) + { + std::cerr << "Error[" << e << "]\n"; + exit(0); + } } // Get the tmp dir @@ -129,7 +145,17 @@ void Client::Wait() { if (this->clientId >= 0) - this->SemWait(); + { + try + { + this->SemWait(); + } + catch (std::string e) + { + std::cerr << "Error[" << e << "]\n"; + exit(0); + } + } } Modified: code/gazebo/trunk/player/GazeboClient.cc =================================================================== --- code/gazebo/trunk/player/GazeboClient.cc 2008-07-02 17:28:30 UTC (rev 6731) +++ code/gazebo/trunk/player/GazeboClient.cc 2008-07-02 17:55:54 UTC (rev 6732) @@ -50,8 +50,15 @@ GazeboClient::client = new Client(); - // Use version 0.5.0 + try + { GazeboClient::client->ConnectWait(serverid, GZ_CLIENT_ID_PLAYER); + } + catch( std::string e ) + { + std::cerr << "Error[" << e << "]\n"; + exit(0); + } GazeboClient::sim = new SimulationIface(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit