-1
运行此代码时,我得到一个异常C#程序异常
String cmd = "-redir:sim applu.res -max:inst {0} -pred {1} -assoc {2} -lvpt {3} -speedup {4} applu.ss<applu.in";
for (int i = 0; i < parameters.Length; i++) {
cmd = cmd.Replace ("{" + i + "}", parameters [i]);
}
Console.WriteLine (cmd);
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "./sim-spred";
process.StartInfo.Arguments = cmd;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
Console.WriteLine(process.StandardOutput.ReadToEnd());
源位于debug文件夹
' “我得到一个异常”'是*信息不足*。请复制并粘贴确切的例外文本。另外,如果你在调试器中运行它,它可能会指向你的确切线。也包括这些信息。 –
你介意发布异常吗? – Dunken
Wheres例外? – Idris