Hi Mark,
It's a 2GB SanDisk micro SD card. However after my last post it seems the problem is back on a different card.
The thread ran from 2015-11-09 00:28:09.152 until 2015-11-09 00:52:44.284 this morning. Interestingly, after looking at the log files the last entry in the log file is:
2015-11-09 00:52:44.284 | 13 | ArchiveDataService | Deleting 6 of 7 files.
The code is as below:
m_Logger.Debug("Deleting {0} of {1} files.", fileIndex, fileCount);
long fileSize = m_FileHelper.GetFileSize(m_Configuration.TargetPath, fileName);
if (fileSize >= 0)
{
m_Logger.Debug("Deleting file. Filesize: {0} bytes, ArchivePath: '{1}', Filename: '{2}'", fileSize, m_Configuration.ArchivePath, fileName);
m_FileHelper.DeleteFile(m_Configuration.ArchivePath, fileName);
}
which implies that the code blocked on attempting to get the file size. And getting the file size operation is as follows:
public long GetFileSize(string targetPath, string fileName)
{
long fileSize = 0;
string filePath = Path.Combine(targetPath, fileName);
if (File.Exists(filePath))
{
var info = new FileInfo(filePath);
fileSize = info.Length;
}
return fileSize;
}
Any suggestions?
Thanks,
Jason.
- VictorSON likes this