Index: trunk/src/Dam/Data/StabilityServiceAgent.cs =================================================================== diff -u -r111 -r126 --- trunk/src/Dam/Data/StabilityServiceAgent.cs (.../StabilityServiceAgent.cs) (revision 111) +++ trunk/src/Dam/Data/StabilityServiceAgent.cs (.../StabilityServiceAgent.cs) (revision 126) @@ -418,9 +418,18 @@ } else { + string filename = Path.GetTempFileName(); + mStabIniFilename = CreateMStabIniFile(folderOrFileName); - argument = string.Format("/b \"{0}\"", mStabIniFilename); + argument = string.Format("/b \"{0}\"", mStabIniFilename); programpath = MStabExePath; + File.WriteAllText(filename, programpath); + File.WriteAllText(filename, argument); + File.AppendAllText(filename, mStabIniFilename); + + argument = string.Format("/B /PlotJPeg /Plot \"{0}\"", folderOrFileName); // note: use the folder name only for running MStab in batch mode + File.AppendAllText(filename, argument); + programpath = MStabExePath; } var process = new Process Index: trunk/src/Dam/Tests/DamProjectCalculatorTest.cs =================================================================== diff -u -r125 -r126 --- trunk/src/Dam/Tests/DamProjectCalculatorTest.cs (.../DamProjectCalculatorTest.cs) (revision 125) +++ trunk/src/Dam/Tests/DamProjectCalculatorTest.cs (.../DamProjectCalculatorTest.cs) (revision 126) @@ -23,7 +23,7 @@ public class DamProjectCalculatorTest { [Test] - [Ignore("Hangs on Teamcity")] + //[Ignore("Hangs on Teamcity")] [Category(Categories.Slow)] public void SingleDamCalculationWithStablityReturnsCorrectSafetyFactor() {