Enterprise Architect – for instead of foreach?
von Andreas Bruckner | 0 Kommentare »Lately I experienced a strange error automating Enterprise Architect: iterating through the Element-Collection of Package resultet in an AccessViolationException. It worked fine for the first time, but failed the next time, until I replaced the FOREACH-loop with FOR.
So I did some investigation, and the result was like this: FOREACH creates an instance of an IEnumerator, [...]









