How do I find out which function or target is modifying the items in a foreach loop in a multithreaded application?
I continously keep getting the error "Collection was modified; enumeration operation may not execute". I'm not removing or adding any items to the generic list within the for loop. I want to find out how it is getting modified. What is the best way to do this?
Thanks