The problem: there is a log file in which several streams are written all the time. The problem is that on Windows 10 and Windows 8.1 this log on disk takes 4GB. That is, if you look at the file properties, it says: Size: 8.25MB (8,661,191 bytes); Size on disk: 4.04GB (4,345,872,384 bytes). In fact, there is not much information in the file. On Windows 7, everything is displayed normally. The file system in both cases is NTFS. I understand that without the code of the logger class itself and without the code that writes these logs, it is possible to assess the situation, but unfortunately, there is no possibility to drop the code. Who has any thoughts why this may be and in what direction to dig the solution to the problem?
SetFilePointer(m_hFile,0,0,FILE_END);And why, then, on Windows7 everything is OK, but not on Windows10? - rudolfninja