mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 17:50:35 +05:00
bos #19060 [CEA] Fatal error no persistant file when loading SMESH
This commit is contained in:
parent
c94d2e489e
commit
535033fcd5
@ -604,12 +604,12 @@ SALOMEDS::TMPFile* GEOM_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent,
|
|||||||
// Build a full file name of temporary file
|
// Build a full file name of temporary file
|
||||||
TCollection_AsciiString aFullName = TCollection_AsciiString((char*)aTmpDir.c_str()) + aNameWithExt;
|
TCollection_AsciiString aFullName = TCollection_AsciiString((char*)aTmpDir.c_str()) + aNameWithExt;
|
||||||
// Save GEOM component in this file
|
// Save GEOM component in this file
|
||||||
_impl->Save((char*) aFullName.ToCString());
|
if (_impl->Save((char*) aFullName.ToCString())) {
|
||||||
// Conver a file to the byte stream
|
// Convert a file to the byte stream
|
||||||
aStreamFile = SALOMEDS_Tool::PutFilesToStream(aTmpDir.c_str(), aSeq, isMultiFile);
|
aStreamFile = SALOMEDS_Tool::PutFilesToStream(aTmpDir.c_str(), aSeq, isMultiFile);
|
||||||
// Remove the created file and tmp directory
|
// Remove the created file and tmp directory
|
||||||
if (!isMultiFile) SALOMEDS_Tool::RemoveTemporaryFiles(aTmpDir.c_str(), aSeq, true);
|
if (!isMultiFile) SALOMEDS_Tool::RemoveTemporaryFiles(aTmpDir.c_str(), aSeq, true);
|
||||||
|
}
|
||||||
// Return the created byte stream
|
// Return the created byte stream
|
||||||
return aStreamFile._retn();
|
return aStreamFile._retn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user