Changeset 4422 for trunk/packages/vizservers/vtkvis/RendererCmd.cpp
- Timestamp:
- Jun 25, 2014 12:58:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r4371 r4422 13122 13122 std::ostringstream oss; 13123 13123 oss << "nv>viserror -type internal_error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 13124 nBytes = oss.str().length(); 13124 std::string ostr = oss.str(); 13125 nBytes = ostr.length(); 13125 13126 13126 13127 #ifdef USE_THREADS 13127 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);13128 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 13128 13129 #else 13129 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {13130 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 13130 13131 ERROR("write failed: %s", strerror(errno)); 13131 13132 return -1; … … 13135 13136 } 13136 13137 13137 st ring = getUserMessages();13138 nBytes = strlen(string);13138 std::string msg = getUserMessages(); 13139 nBytes = msg.length(); 13139 13140 if (nBytes > 0) { 13141 string = msg.c_str(); 13140 13142 TRACE("userError=(%s)", string); 13141 13143 13142 13144 std::ostringstream oss; 13143 13145 oss << "nv>viserror -type error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 13144 nBytes = oss.str().length(); 13146 std::string ostr = oss.str(); 13147 nBytes = ostr.length(); 13145 13148 13146 13149 #ifdef USE_THREADS 13147 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);13150 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 13148 13151 #else 13149 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {13152 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 13150 13153 ERROR("write failed: %s", strerror(errno)); 13151 13154 return -1;
Note: See TracChangeset
for help on using the changeset viewer.