GenieClient / Genie4

.NET 6 Update of Genie
GNU General Public License v3.0
20 stars 14 forks source link

Defect: Genie crash when modifying arrays in a script #63

Closed sd0yle closed 2 years ago

sd0yle commented 2 years ago

OS: Win 10 Environment Version: 6.0.1 Genie Version: 4.0.1.2

Error:

EndUpdate Collection was modified; enumeration operation may not execute. System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.ArrayList.ArrayList.EnumeratorSimple.MoveNext() atGenieClient.FormMain.ParseTriggers(String sText, Boolean bBufferWait)

Occurs when a local variable array such as var skills Skill One|Skill Two|Skill Three|Skill Four is resorted by building a second array and iterating through the first.

mj-colonel-panic commented 2 years ago

can you please test this with the latest build and let me know if it still occurs?

sd0yle commented 2 years ago

Sure, I'll set up and give it a run.

sd0yle commented 2 years ago

Four hours in and it has not reoccurred with the same scripts. Good to call this one resolved!

mj-colonel-panic commented 2 years ago

Wonderful! Thank you for confirming!

mj-colonel-panic commented 2 years ago

doh you closed...lol closing again