From 3541999cd3338818cd86583383dbca87606d49fa Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Thu, 12 Feb 2009 16:26:54 +0100 Subject: added lock functionality to DebugDump --- lib/MiddleWare/MiddleWare.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/MiddleWare/MiddleWare.cpp') diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 5a5e39d..91eff06 100644 --- a/lib/MiddleWare/MiddleWare.cpp +++ b/lib/MiddleWare/MiddleWare.cpp @@ -111,6 +111,7 @@ void CMiddleWare::DebugDump2Report(const std::string& pDebugDumpDir, CReporter:: { pReport.m_bBinaryData2 = pDebugDumpDir + "/" + FILENAME_BINARYDATA2; } + dd.Close(); } void CMiddleWare::RegisterPlugin(const std::string& pName) @@ -174,6 +175,7 @@ void CMiddleWare::CreateReport(const std::string& pDebugDumpDir, CreateReportLanguage(language, pDebugDumpDir); } DebugDump2Report(pDebugDumpDir, pCrashReport.m_Report); + dd.Close(); } void CMiddleWare::CreateReport(const std::string& pUUID, @@ -273,6 +275,7 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& { dd.Delete(pDebugDumpPath); } + dd.Close(); pCrashInfo.m_sUUID = UUID; pCrashInfo.m_sUID = UID; @@ -308,6 +311,7 @@ CMiddleWare::vector_crash_infos_t CMiddleWare::GetCrashInfos(const std::string& info.m_sExecutable = data; dd.LoadText(FILENAME_PACKAGE, data); info.m_sPackage = data; + dd.Close(); infos.push_back(info); } -- cgit