From f625202c2b8603e94bc9e2a405b421c16b24e61f Mon Sep 17 00:00:00 2001 From: "xun.zhang" Date: Wed, 4 Dec 2024 10:51:52 +0800 Subject: [PATCH] FIX: remove file exception 1.Use boost::nowide::remove instead of std::remove jira:NONE Signed-off-by: xun.zhang Change-Id: Ic674ea0791342d77418d1a0de3289d6027f967b1 --- src/libslic3r/GCode/GCodeProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index b1fa47a53..66b6b64a5 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -1153,7 +1153,7 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename, st BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": after process %1%") % filename.c_str(); - if (remove(filename_in.c_str()) != 0) { + if (boost::nowide::remove(filename_in.c_str()) != 0) { BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": Failed to remove the temporary G-code file %1%") % filename_in.c_str(); throw Slic3r::RuntimeError(std::string("Failed to remove the temporary G-code file ") + filename_in + '\n' + "Is " + filename_in + " locked?" + '\n');