System.InvalidOperationException has been thrown
RobbiewOnline opened this issue · 5 comments
Hi,
I successfully upgraded from PubSub 3.1.0 to 4.0.0, but this week I un-installed the app and re-installed from scratch. During startup I received
System.InvalidOperationException has been thrown
Collection was modified; enumeration operation may not execute
Oddly it seemed to crash every time thereafter.
I tried putting in lock mutex's around all of my hub.Subscribe and hub.Publish invocations to ensure no threading issues from my end, but the problem continued.
In the end I had to revert back to PubSub 3.1.0 and then the problem went away.
Unfortunately I don't have the call stack any more, but it was deep inside PubSub with a LINQ .Where clause.
What is the status here? I have the same problem ... is there a workaround?
@gb0o @christophedelanghe @devology-rob
My apologies! I completely forgot this fix was pending, then was going to do it when @christophedelanghe brought it up and got busy and forgot again :(
I'll merge the fix and update the nuget package tomorrow. Sorry about the inconvenience!
Thx! I reverted back to version 3.1.0. Wil test it again after your merge.