]> Creatis software - clitk.git/blobdiff - common/clitkExceptionObject.cxx
add slider for temporal dim (not used)
[clitk.git] / common / clitkExceptionObject.cxx
index 8adb8a01465d2005aed73a6988617211d757d3da..cadc7b88653b4791206843d2ae5fc985d56aa834 100644 (file)
@@ -34,10 +34,13 @@ ExceptionObject(const char *file, unsigned int lineNumber, const char *desc):
 //--------------------------------------------------------------------
 const char* clitk::ExceptionObject::what() const throw() 
 {
-  ::itk::OStringStream message;
+  std::ostringstream message;
   message << "clitk::ERROR in " << m_Filename << " line " << m_LineNumber
           << " : " << std::endl << "\t" << m_Message;
-  return message.str().c_str();
+  char * m = new char[message.str().length()];
+  for(uint i=0; i< message.str().length(); i++)
+    m[i] = message.str().c_str()[i];
+  return m;//essage.str().c_str();
 }
 //--------------------------------------------------------------------