title: Desktop Composition Is Disabled Error
body: <p>In my WPF application on .NET 4.0, I am having users report two errors that seem very intermittent and I cannot get a handle on. Below, I am posting the message and the top-most line of the stack trace. I can post the full stack trace if needed. </p>
  
  <pre><code>Message:       {Desktop composition is disabled} The operation could not be completed because desktop composition is disabled. (Exception from HRESULT: 0x80263001)
  StackTrace:    at Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS&amp; pMarInset)
  
  Message:       Insufficient memory to continue the execution of the program.
  StackTrace:    at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
  </code></pre>
  
  <p>Google is not proving very helpful, so I was hoping maybe you guys have seen them before.</p>