title: WPF-application out of memory when deployed on Win7 x64
body: <p>Does anyone know what will cause the following exception on a WPF application?  Started happening after deployment on Windows 7 x64.   Application is using .NET 3.5 and there is no specific action that causes this and length of time application has been running is random.</p>
  
  <pre><code>Message : Insufficient memory to continue the execution of the program.
  Source : PresentationCore
  Help link : 
  Data : System.Collections.ListDictionaryInternal
  TargetSite : Boolean CreateOrAddRefOnChannel(ResourceHandle ByRef, ResourceType)
  Stack Trace :    at System.Windows.Media.Composition.DUCE.Channel.CreateOrAddRefOnChannel(ResourceHandle&amp; handle, ResourceType resourceType)
     at System.Windows.Media.Composition.DUCE.MultiChannelResource.CreateOrAddRefOnChannel(Channel channel, ResourceType type)
     at System.Windows.Media.RenderData.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
     at System.Windows.UIElement.RenderContent(RenderContext ctx, Boolean isOnChannel)
     at System.Windows.Media.Visual.UpdateContent(RenderContext ctx, VisualProxyFlags flags, Boolean isOnChannel)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
     at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
     at System.Windows.Media.Visual.Render(RenderContext ctx, UInt32 childIndex)
     at System.Windows.Media.CompositionTarget.Compile(Channel channel)
     at System.Windows.Media.CompositionTarget.System.Windows.Media.ICompositionTarget.Render(Boolean inResize, Channel channel)
     at System.Windows.Media.MediaContext.Render(ICompositionTarget resizedCompositionTarget)
     at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
     at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
     at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
  </code></pre>