fIX SIEMENS axes
This commit is contained in:
@@ -1801,9 +1801,12 @@ namespace CMS_CORE_Library.Siemens
|
||||
// Cycle between axes
|
||||
// The dictionary is written asynchronously so i have to create a copy of the dictionary with .ToList() to avoid exceptions
|
||||
// axes = InterpAxesPosition.ToDictionary(x => x.Key, x => x.Value); This code throws exceptions
|
||||
foreach (var axis in InterpAxesPosition.ToList())
|
||||
lock (InterpAxesPosition)
|
||||
{
|
||||
axes.Add(axis.Key, axis.Value);
|
||||
foreach (var axis in InterpAxesPosition.ToList())
|
||||
{
|
||||
axes.Add(axis.Key, axis.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user