From: ana Date: Fri, 20 Mar 2015 16:17:27 +0000 (+0300) Subject: Fix for issue 0022515: [CEA 1074] Hexotic does not work under Windows 7 64 bits X-Git-Tag: V7_6_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8bd6326a00060d8e553b8c1f3849c89b33a03520;p=plugins%2Fhexoticplugin.git Fix for issue 0022515: [CEA 1074] Hexotic does not work under Windows 7 64 bits --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 0e3b184..77ea848 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -1503,8 +1503,7 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh& aMesh, if ( aTmpDir.Value(aTmpDir.Length()) != '/' ) aTmpDir += '/'; #endif TCollection_AsciiString Hexotic_In(""), Hexotic_Out, Hexotic_SizeMap_Prefix; - TCollection_AsciiString modeFile_In( "chmod 666 " ), modeFile_Out( "chmod 666 " ); - TCollection_AsciiString aLogFileName = aTmpDir + "Hexotic"+getSuffix()+".log"; // log + TCollection_AsciiString modeFile_In( "chmod 666 " ), modeFile_Out( "chmod 666 " ); TCollection_AsciiString aLogFileName = aTmpDir + "Hexotic"+getSuffix()+".log"; // log std::map aSmdsToHexoticIdMap; std::map aHexoticIdToNodeMap; @@ -1557,8 +1556,10 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh& aMesh, // -------------- std::ifstream fileRes( Hexotic_Out.ToCString() ); +#ifndef WIN32 modeFile_Out += Hexotic_Out; system( modeFile_Out.ToCString() ); +#endif if ( ! fileRes.fail() ) { Ok = readResult( Hexotic_Out.ToCString(), this,