From: dmv Date: Mon, 13 Sep 2010 13:29:50 +0000 (+0000) Subject: IPAL20849 WinTC5.1.4: hang up or crash on open the ASCII study X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=786a71fcf5bc2095896444f584337733bb36f4ba;p=modules%2Fsmesh.git IPAL20849 WinTC5.1.4: hang up or crash on open the ASCII study --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 9e9b90e4b..197af25ad 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -3190,7 +3190,10 @@ SALOMEDS::TMPFile* SMESH_Gen_i::SaveASCII( SALOMEDS::SComponent_ptr theComponent bool isMultiFile ) { if(MYDEBUG) MESSAGE( "SMESH_Gen_i::SaveASCII" ); SALOMEDS::TMPFile_var aStreamFile = Save( theComponent, theURL, isMultiFile ); + + #ifndef WIN32 return aStreamFile._retn(); + #endif //after usual saving needs to encipher binary to text string //Any binary symbol will be represent as "|xx" () hexadecimal format number @@ -4278,7 +4281,10 @@ bool SMESH_Gen_i::LoadASCII( SALOMEDS::SComponent_ptr theComponent, const char* theURL, bool isMultiFile ) { if(MYDEBUG) MESSAGE( "SMESH_Gen_i::LoadASCII" ); + + #ifndef WIN32 return Load( theComponent, theStream, theURL, isMultiFile ); + #endif //before call main ::Load method it's need for decipher text format to //binary ( "|xx" => x' )