diff --git a/TBF/BenchControl/Sequences/MainSeq.cs b/TBF/BenchControl/Sequences/MainSeq.cs
index 88487a560..ae66dc444 100644
--- a/TBF/BenchControl/Sequences/MainSeq.cs
+++ b/TBF/BenchControl/Sequences/MainSeq.cs
@@ -338,10 +338,11 @@ namespace TBF.BenchControl.Sequences
///
public void Execute()
{
- IList e;
+ IList e = new List();
Selection selection;
string selectedTestName;
+#if !DEBUG
Bridge.OnActivity(this, Strings.Starting_system);
WaitForOkButton();
SetValvesToDefaultState();
@@ -397,9 +398,9 @@ namespace TBF.BenchControl.Sequences
if (e.Contains(Event.UiCmdStop)) goto stop;
}
while (!e.Contains(Event.BalanceDone));
+#endif
- //--------------------------------------------------------------------------------------------
- select_procedure:
+ select_procedure:
CloseBeginForm(); /// Make sure the CycleBeginForm is closed (after an abnormal end, etc.)
diff --git a/TBF/MainWnd.cs b/TBF/MainWnd.cs
index f8e5623aa..8887538ff 100644
--- a/TBF/MainWnd.cs
+++ b/TBF/MainWnd.cs
@@ -224,7 +224,7 @@ namespace TBF
form.CloseForm(null, new EventArgs());
formThread.Join();
-#if !MUNICH
+#if !DEBUG && !MUNICH
if (message != null)
{
MessageBox.Show(Strings.The_following_components_are_in_simulation_mode_ + Environment.NewLine + message,