using System; using System.Collections; using Microsoft.SPOT; namespace MFConsoleApplication1 { public static class EngrLog { //Collections are supposed to be memory intensive, need to check how much space we're using static private ArrayList engrDataLog = new ArrayList(); static private ArrayList engrEventLog = new ArrayList(); public static void writeData(string logString) { engrDataLog.Add(logString); Debug.Print(logString); //Debug.GC(true); } public static void writeEvent(string logString) { engrEventLog.Add(logString); Debug.Print(logString); //Debug.GC(true); } public static int uploadData() { for (int i = 0; i < engrDataLog.Count; i++) Console.sendLine(engrDataLog[i].ToString() + "\r\n"); return (0); } public static void readEvent() { for (int i = 0; i < engrEventLog.Count; i++) Debug.Print(engrEventLog[i].ToString()); } } }