05-23-2024 05:39 AM
Hi All,
We are attempting to modify the value of a Boolean that has been passed to a C# .Net code module. We require any change to the Boolean by the calling sequence be reflected within the .Net module. We also require any changes to the Boolean made with the .Net module be reflected in the calling sequence. However, we are only able to see the changes one way, when the .Net module changes the value. We cannot see the change made by the calling sequence.
The parameter is passed by reference to the code module and the code module parameter has the "ref" keyword applied.
How are we able to achieve this? Thanks for your assistance.
Regards
John
05-25-2024 01:55 AM
What’s your strategy for avoiding race conditions?
05-28-2024 04:31 AM
Hi Oli_Wachno,
We're not anticipating any issues in that respect as the application is not critical. Essentially we are making a hardware monitor to assist in sequence development. We're recording any output assertions and input measurements made in StationGlobals and retrieving them for display on a form via SequenceContext. We are only concerned with the values when we hit a beak point when debugging a calling sequence.
John
06-02-2024 08:11 AM
Attach an example. It's strange that the change works in one direction IMHO.