Displaying 1 result from an estimated 1 matches for "mstrfilepath".
2008 Feb 04
5
WinXP/x64 - MFC CFile objects leak parent directory handles
...run on a 32-bit
XP client, regardless of whether the share belongs to
a Samba server or to a Windows server.
I have traced the problem to a local instantiation of an
object of MFC class CFile in the line 170 of the following
code:
166 CString CWaitForChangedFile::GetFileContent()
167 { if (mstrFilePath.IsEmpty())
168 return "";
169 _my_TRY
170 CFile file(mstrFilePath,
CFile::modeRead |
CFile::shareDenyNone);
171 int size = (int)file.GetLength();
172...