Forum Xamarin.Forms

MessagingCenter.Subscribe exceptions

Hello,
What are the circumstances that would cause the following call to throw an exception?

MessagingCenter.Subscribe<MyClass>(this, "testmessage", OnTestMessage);

I'm getting "Index was outside the bounds of the array" on this and having a hard time understanding why? I would assume this is a threadsafe operation, but maybe not?

Any insight into this would be appreciated.
Thanks,
Dean

Posts

Sign In or Register to comment.