Browse Source

move all statements inside try-catch blocks

addin-manager-package-subdirectories
Siegfried Pammer 12 years ago
parent
commit
6021279bfc
  1. 9
      src/AddIns/Analysis/Profiler/X64Converter/Program.cs

9
src/AddIns/Analysis/Profiler/X64Converter/Program.cs

@ -14,8 +14,9 @@ namespace X64Converter
{ {
static int Main(string[] args) static int Main(string[] args)
{ {
File.Delete("conversion.log");
try { try {
File.Delete("conversion.log");
List<string> map = new List<string>() { List<string> map = new List<string>() {
"..\\Controller\\Profiler", "..\\Controller\\Profiler",
"..\\Controller\\Data\\UnmanagedCallTreeNode", "..\\Controller\\Data\\UnmanagedCallTreeNode",
@ -52,7 +53,11 @@ namespace X64Converter
return 0; return 0;
} catch (Exception e) { } catch (Exception e) {
File.WriteAllText("conversion.log", e.ToString()); try {
File.WriteAllText("conversion.log", e.ToString());
} catch (Exception) {
return -2;
}
return -1; return -1;
} }
} }

Loading…
Cancel
Save