Why are there allocations in my loop depending upon how I set a variable?

Start with a working example and start deleting things until the problem disappears …

Unless you make something that others can reproduce it’s going to be extremely hard to help you.

5 Likes