Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

System.OutOfMemoryException when trying to send message #78

Open
EnomisG opened this issue Dec 18, 2019 · 2 comments
Open

System.OutOfMemoryException when trying to send message #78

EnomisG opened this issue Dec 18, 2019 · 2 comments

Comments

@EnomisG
Copy link

EnomisG commented Dec 18, 2019

Sometimes when sending a message a OutOfMemoryException was thrown.
.net framework 4.0

An unhandled exception just occurred|System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.Add(T item)
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token) in c:\MvvmLight\Source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Messaging\Messenger.cs:line 669
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message) in c:\MvvmLight\Source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (PCL)\Messaging\Messenger.cs:line 259
@LeiYangGH
Copy link

is there a demo to reproduce this issue?

@Eagle3386
Copy link

Maybe related to #65? 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants