I have a Hashtable that consist in pair<condition to check, result of check>. This represents a hashtable of conditions.
I want to have a list of instruction that use these conditions. The instructions is therefore composed of a set of conditions, and I want to evaluates instructions to true if all the conditions that belong to the instructions are evaluated to true.
The list of conditions that composed an instruction is build with
and the Hash table of conditions is initialized with:
c being a condition.
Finaly the hashtable of instruction is build with:
i.ID being the unique key (in this case an integer).
Conditions are evaluated by a separate thread and printing out the elements that exist into the HashTable of Conditions shows correct results sometimes conditions are true when they should be and go back to false when conditions are not verified.
The problem is that the hashtable of instructions contains values (i.e. results of tested conditions) that are always False… This seems therefore that
do not add reference to the value but the value itself. The problem is that
is not allowed.
Do you have any tricks to advice?