Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 22 Jan 2015
Offline Last Active Jan 27 2016 11:18 AM

#64466 ND3 hangs calling File.Delete()

Posted by ukkiwisurfer on 09 November 2015 - 09:53 AM

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?




#61349 UDP support in MF 4.3.

Posted by ukkiwisurfer on 24 January 2015 - 08:48 AM

Hi Chris,


My apologies for the lack of clarification -it is multicast that seems to be the problem. The nature of your reply seems to confirm that UDP multicast is not currently supported with the existing IP stack. Is that correct?


I'd like to help with testing on the new IP stack; however the existing issue does pose a challenge. If I read your new IP rollout correctly, 12 weeks from now we should have a new stack, feeding into a beta programme. I can't really afford to wait 12 weeks to resolve this existing issue, blocking development in the process. I've already lost a week trying to resolve issues around the existing IP stack (which thankfully your 4.3.1 firmware partially resolved).


I'm also concerned about the lack of clarity on what features in the MF are not supported by the firmware (or have issues). Do you have a defect list, by firmware version, that identifies issues, severity, status and timeframes to resolve?


I'm hoping to soon be in a state to release the framework I've built out for MF, which may be of use to others. Nothing fancy: multi-threaded services (not web services), logging support for AMQP and MQTT providers, basic assertions, and a standardised set of error classifications. The aim is to support integrating with a server side framework I've built up around WCF. 


Finally, thanks for the welcome!




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.