Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.