Index: RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs =================================================================== --- RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs (revision 4315) +++ RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs (working copy) @@ -68,8 +68,17 @@ if (Locomotive.TrainControlSystem != null && Locomotive.TrainControlSystem.Sounds.Count > 0) foreach (var script in Locomotive.TrainControlSystem.Sounds.Keys) - Viewer.SoundProcess.AddSoundSources(script, new List() { - new SoundSource(Viewer, Locomotive, Locomotive.TrainControlSystem.Sounds[script])}); + { + try + { + Viewer.SoundProcess.AddSoundSources(script, new List() { + new SoundSource(Viewer, Locomotive, Locomotive.TrainControlSystem.Sounds[script])}); + } + catch (Exception error) + { + Trace.TraceInformation("File " + Locomotive.TrainControlSystem.Sounds[script] + " in script of locomotive of train " + Locomotive.Train.Name + " : " + error.Message); + } + } } protected virtual void StartGearBoxIncrease()