We were seeing the following error message when saving ApplicationProgram error messages containing relative code segments:
with the following additional info from VS:
This issue occurs due to
newAbsCodeSegmentId = ((comboBoxParParMemCodeSegment.SelectedItem as ComboBoxItem).Tag as ApplicationProgramStatic_tCodeAbsoluteSegment).Id;
in the save code not taking into account that Tag might also be a ApplicationProgramStatic_tCodeRelativeSegment.
This pulls request fixes this issue by extracting newAbsCodeSegmentId from either ApplicationProgramStatic_tCodeAbsoluteSegment or ApplicationProgramStatic_tCodeRelativeSegment. For me, this quick fix works so that the error message doesn't appear any more and changes to the offset are saved into the KNXPROD file.
We were seeing the following error message when saving ApplicationProgram error messages containing relative code segments: with the following additional info from VS:
This issue occurs due to
in the save code not taking into account that
Tag
might also be aApplicationProgramStatic_tCodeRelativeSegment
.This pulls request fixes this issue by extracting
newAbsCodeSegmentId
from eitherApplicationProgramStatic_tCodeAbsoluteSegment
orApplicationProgramStatic_tCodeRelativeSegment
. For me, this quick fix works so that the error message doesn't appear any more and changes to the offset are saved into the KNXPROD file.