Salome HOME
IPAL20849 WinTC5.1.4: hang up or crash on open the ASCII study
authordmv <dmv@opencascade.com>
Mon, 13 Sep 2010 13:29:50 +0000 (13:29 +0000)
committerdmv <dmv@opencascade.com>
Mon, 13 Sep 2010 13:29:50 +0000 (13:29 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index 9e9b90e4bf2839cde28c01d4533f25d46c9d04db..197af25adf0f7c86043eb18ac969165b4e7846bf 100644 (file)
@@ -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' )