AnsweredAssumed Answered

AFValues out of scope?

Question asked by mdspath on Oct 15, 2015
Latest reply on Oct 15, 2015 by mdspath


The attached is a pic of code that has been stripped so it will not compile but hopefully enough to give someone the flow of the code. What is happening is we are iterating through the vesselBatchIds IEnum the second time we are getting a crash error "cannot access disposed object" message.

pointsValues does not go out of scope.

Is there a limit on how many time to iterate through AFValues?


foreach (BatchDetails bd in vesselBatchIds)


                    foreach (AFValues Vals in pointsValues)