From 8bd6326a00060d8e553b8c1f3849c89b33a03520 Mon Sep 17 00:00:00 2001 From: ana Date: Fri, 20 Mar 2015 19:17:27 +0300 Subject: [PATCH] Fix for issue 0022515: [CEA 1074] Hexotic does not work under Windows 7 64 bits --- src/HexoticPlugin/HexoticPlugin_Hexotic.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.39.2