Little bug in Messenger (v3)

Nov 12, 2009 at 5:51 AM

Hi

I think, this is a little bug in the newest version of the Messenger:

Code in function SendToList<TMessage>:

if (executeAction != null
    && item.Action.IsAlive
    && item.Action.Target != null
    && (messageTargetType == null
|| item.Action.Target.GetType() == messageTargetType
|| Implements(item.Action.Target.GetType(), messageTargetType))
&& item.Token == token)
{
executeAction.ExecuteWithObject(message);
}

must be:

if (executeAction != null
    && item.Action.IsAlive
    && item.Action.Target != null
    && (messageTargetType == null
|| item.Action.Target.GetType() == messageTargetType
|| Implements(item.Action.Target.GetType(), messageTargetType))
&& item.Token.Equals(token))
{
executeAction.ExecuteWithObject(message);
}

Greets

Etxebarria

Nov 12, 2009 at 5:54 AM

sorry, the bug was also found in a past post...

 

Coordinator
Nov 13, 2009 at 3:30 PM

The bug is fixed in the latest changeset.

Cheers,

Laurent

Coordinator
Apr 18, 2010 at 6:53 PM

Hi,

As you are a previous user of the discussion tab on the MVVM Light Codeplex site, I would like to inform you that I decided to encourage the usage of StackOverflow for questions regarding the MVVM Light toolkit. Please tag your questions with the mvvm-light tag.

StackOverflow is an awesome site where tons of developers help others with their technical question.

http://stackoverflow.com/questions/tagged/mvvm-light

I will monitor this tag on the StackOverflow website and do my best to answer questions. The advantage of StackOverflow over the Codeplex discussion is the sheer number of qualified developers able to help you with your questions, the visibility of the question itself, and the whole StackOverflow infrastructure (reputation, up- or down-vote, comments, etc)

Thanks!

Laurent