#ifndef COUT
std::string aResult = aStr.str();
- ofstream anFStream("/tmp/dump.py");
- anFStream<<aResult<<endl;
+ //ofstream anFStream("/tmp/dump.py");
+ //anFStream<<aResult<<endl;
- char* aBuffer = new char[aResult.size()+1];
- strcpy(aBuffer, (char*)&aResult[0]);
-
- return new Engines::TMPFile(aResult.size()+1, aResult.size()+1, (CORBA::Octet*)aBuffer, 1);
+ CORBA::ULong aSize = aResult.size() + 1;
+ char* aBuffer = new char[aSize];
+ strcpy(aBuffer,&aResult[0]);
+ return new Engines::TMPFile(aSize,aSize,(CORBA::Octet*)aBuffer,1);
#else
#undef aStr
return new Engines::TMPFile(0);