<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='UnicodeRelease|x64'">NotUsing</PrecompiledHeader>\r
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>\r
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='UnicodeDebug|x64'">NotUsing</PrecompiledHeader>\r
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Unicode + Code Analysis|x64'">NotUsing</PrecompiledHeader>\r
</ClCompile>\r
+ <ClCompile Include="Common\SplitterWndEx.cpp">\r
+ </ClCompile>\r
<ClCompile Include="Common\StatLink.cpp">\r
</ClCompile>\r
<ClCompile Include="StdAfx.cpp">\r
tempfolderPID = foldername.substr(_tcslen(TempFolderPrefix));
// Check if this instance of WM is still running
- if (!WMrunning(processIDs, _ttoi (tempfolderPID.c_str())))
+ try
+ {
+ int pid = string_stoi(tempfolderPID);
+ if (!WMrunning(processIDs, pid))
+ {
+ tempfolderPID = paths_ConcatPath(paths_GetParentPath(pattern), ff.cFileName);
+ if (res = ClearTempfolder(tempfolderPID))
- {
- if (!res)
- break;
+ bok = !!FindNextFile(h, &ff) ;
- }
+ continue;
+ }
+ }
+ catch (...)
{
- tempfolderPID = paths_ConcatPath(paths_GetParentPath(pattern), ff.cFileName);
- if (res = ClearTempfolder(tempfolderPID))
- bok = !!FindNextFile(h, &ff) ;
- continue;
}
}
bok = !!FindNextFile(h, &ff) ;