Added option to check RTF with StepRTB
Use Temporary Folder for SearchResults Remove override of Equals - return to default Comment-out Debug Remove PDFs that are older than one hour Added a ShowLocalStack that takes a format and a list of parameters
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Volian.Base.Library
|
||||
// only delete pdfs if they are older than an hour - just to be
|
||||
// safe. During creation of pdf's, separate pdfs are created for
|
||||
// word sections and imported into the main resulting pdf.
|
||||
if (fi.LastAccessTime.Ticks > (DateTime.Now.Ticks - TimeSpan.TicksPerHour))
|
||||
if (fi.LastAccessTime.Ticks < (DateTime.Now.Ticks - TimeSpan.TicksPerHour))
|
||||
fi.Delete();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@@ -62,22 +62,26 @@ namespace Volian.Base.Library
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
public static void ShowStackLocal(string str, params object[] objects)
|
||||
{
|
||||
Console.WriteLine(string.Format(str, objects) + StackToStringLocal(2,10));
|
||||
}
|
||||
public static void ShowStackFirstLocal(string str)
|
||||
{
|
||||
Console.WriteLine(str + " " + StackToStringLocal(3,0));
|
||||
Console.WriteLine(str + "\r\n" + StackToStringLocal(3, 0));
|
||||
}
|
||||
public static void ShowStackLocal(string str,int start)
|
||||
{
|
||||
Console.WriteLine(str + " " + StackToStringLocal(start,1));
|
||||
Console.WriteLine(str + "\r\n" + StackToStringLocal(start,1));
|
||||
}
|
||||
public static void ShowStackLocal(string str,int start, int limit)
|
||||
{
|
||||
Console.WriteLine(str + " " + StackToStringLocal(start, limit));
|
||||
Console.WriteLine(str + "\r\n" + StackToStringLocal(start, limit));
|
||||
}
|
||||
private static string StackToStringLocal(int start, int limit)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
string sep = "Local Method - ";
|
||||
string sep = "\r\n";
|
||||
StackTrace st = new StackTrace(true);
|
||||
StackFrame[] sfs = st.GetFrames();
|
||||
int count = 0;
|
||||
|
Reference in New Issue
Block a user