{"action":"closed","issue":{"url":"https://api.github.com/repos/thomaslevesque/WpfAnimatedGif/issues/10","labels_url":"https://api.github.com/repos/thomaslevesque/WpfAnimatedGif/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/thomaslevesque/WpfAnimatedGif/issues/10/comments","events_url":"https://api.github.com/repos/thomaslevesque/WpfAnimatedGif/issues/10/events","html_url":"https://github.com/thomaslevesque/WpfAnimatedGif/issues/10","id":52119633,"number":10,"title":"Out of memory exception in v1.4.9","user":{"login":"shanadas","id":3648025,"avatar_url":"https://avatars.githubusercontent.com/u/3648025?v=3","gravatar_id":"","url":"https://api.github.com/users/shanadas","html_url":"https://github.com/shanadas","followers_url":"https://api.github.com/users/shanadas/followers","following_url":"https://api.github.com/users/shanadas/following{/other_user}","gists_url":"https://api.github.com/users/shanadas/gists{/gist_id}","starred_url":"https://api.github.com/users/shanadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanadas/subscriptions","organizations_url":"https://api.github.com/users/shanadas/orgs","repos_url":"https://api.github.com/users/shanadas/repos","events_url":"https://api.github.com/users/shanadas/events{/privacy}","received_events_url":"https://api.github.com/users/shanadas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-16T14:38:49Z","updated_at":"2015-07-26T11:24:10Z","closed_at":"2015-07-26T11:24:10Z","body":"I am getting following exception randomly when I create random number of instances (less than 25) of a custom control with WpfAnimatedGif control. Exception stack trace below, highlighted some lines.\r\n\r\n>at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)\r\n   at System.Windows.Media.Imaging.RenderTargetBitmap.CopyCommon(RenderTargetBitmap sourceBitmap)\r\n   at System.Windows.Media.Imaging.RenderTargetBitmap.CloneCurrentValueCore(Freezable sourceFreezable)\r\n   at System.Windows.Freezable.CloneCoreCommon(Freezable sourceFreezable, Boolean useCurrentValue, Boolean cloneFrozenValues)\r\n   at System.Windows.Freezable.CloneCurrentValueCore(Freezable sourceFreezable)\r\n   at System.Windows.Freezable.CloneCurrentValue()\r\n   at System.Windows.Media.Animation.ObjectKeyFrameCollection.CloneCurrentValueCore(Freezable sourceFreezable)\r\n   at System.Windows.Freezable.CloneCurrentValue()\r\n   at System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames.CopyCommon(ObjectAnimationUsingKeyFrames sourceAnimation, Boolean isCurrentValueClone)\r\n   at System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames.GetCurrentValueAsFrozenCore(Freezable source)\r\n   at System.Windows.Freezable.GetCurrentValueAsFrozen()\r\n   at System.Windows.Media.Animation.Clock..ctor(Timeline timeline)\r\n   at System.Windows.Media.Animation.AnimationTimeline.AllocateClock()\r\n   at System.Windows.Media.Animation.Clock.AllocateClock(Timeline timeline, Boolean hasControllableRoot)\r\n   at System.Windows.Media.Animation.Clock.BuildClockTreeFromTimeline(Timeline rootTimeline, Boolean hasControllableRoot)\r\n   at System.Windows.Media.Animation.AnimationTimeline.CreateClock()\r\n   **_at WpfAnimatedGif.ImageAnimationController..ctor(Image image, ObjectAnimationUsingKeyFrames animation, Boolean autoStart)\r\n   at WpfAnimatedGif.ImageBehavior.InitAnimationOrImage(Image imageControl)\r\n   at WpfAnimatedGif.ImageBehavior.<>c__DisplayClasse`1.<DoWhenLoaded>b__b(Object sender, RoutedEventArgs e)_**\r\n   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)\r\n   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)\r\n   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)\r\n   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)\r\n   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)\r\n   at MS.Internal.LoadedOrUnloadedOperation.DoWork()\r\n   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()\r\n   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()"}}