Changeset 4605 for vtkvis/branches/1.7/RendererCmd.cpp
- Timestamp:
- Aug 2, 2014, 12:33:06 AM (10 years ago)
- Location:
- vtkvis/branches/1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/branches/1.7
- Property svn:mergeinfo changed
/trunk/packages/vizservers/vtkvis merged: 4422
- Property svn:mergeinfo changed
-
vtkvis/branches/1.7/RendererCmd.cpp
r4604 r4605 12622 12622 std::ostringstream oss; 12623 12623 oss << "nv>viserror -type internal_error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 12624 nBytes = oss.str().length(); 12624 std::string ostr = oss.str(); 12625 nBytes = ostr.length(); 12625 12626 12626 12627 #ifdef USE_THREADS 12627 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);12628 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 12628 12629 #else 12629 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {12630 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 12630 12631 ERROR("write failed: %s", strerror(errno)); 12631 12632 return -1; … … 12635 12636 } 12636 12637 12637 st ring = getUserMessages();12638 nBytes = strlen(string);12638 std::string msg = getUserMessages(); 12639 nBytes = msg.length(); 12639 12640 if (nBytes > 0) { 12641 string = msg.c_str(); 12640 12642 TRACE("userError=(%s)", string); 12641 12643 12642 12644 std::ostringstream oss; 12643 12645 oss << "nv>viserror -type error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 12644 nBytes = oss.str().length(); 12646 std::string ostr = oss.str(); 12647 nBytes = ostr.length(); 12645 12648 12646 12649 #ifdef USE_THREADS 12647 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);12650 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 12648 12651 #else 12649 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {12652 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 12650 12653 ERROR("write failed: %s", strerror(errno)); 12651 12654 return -1;
Note: See TracChangeset
for help on using the changeset viewer.