Problem with a while loop
Hi everyone,
I´m programming a plate heat exchanger, the flow begin in single-phase and when certain conditions are met, it change to twin-phase.
I write a while loop, it works and everything is correct.
The first problem comes when I try to introduce some more line and assign a new variable name to it, it fails, I have to reuse a variable name already used inside the loop, it is not solved by declaring the variable outside the program, neither in the program but outside the loop or inside the loop. The failure it gives is the following "" Ldtoken, Ldftn and Ldvirtftn OpCodes cannot have DynamicMethod as their destination ".
The second problem appears in the result array, certain variables fail when appearing together in the result array, only if there are two or more of them, one at a time they do not fail. I have observed that the variables that fail are those found from line 17 in the loop, the previous ones do not fail, and it does not matter if I previously declared them outside the program, inside the program but outside the loop or inside the loop. The only solution is to put just one of those variables.
I use MC14
It's weird, right?
Thanks for your help.
Greetings, Jesús


