title: CFileDialog delayed crashing
body: <p>I have added an "Open file" dialog to my dialog-based MFC application. Now, exactly one minute(!) after an open file dialog is closed by pushing either Open or Cancel button my application crashes. While it crashes, the following things are happening in the output:</p>
  
  <p>1) a bunch of Windows threads are exiting;</p>
  
  <p>2) a bunch of COM exceptions (of 0x80010108 "the object invoked has disconnected from its clients" and 0x800401FD "Object is not connected to server" variety) are being thrown;</p>
  
  <p>3) finally, an unhandled exception occurs: 0xC0000005: Access violation reading location 0xfeeefeee, with call stack pointing to ole32.dll.</p>
  
  <p>To say that I am bewildered is quite an understatement. The code for invoking the dialog is as follows:</p>
  
  <pre><code>CFileDialog fileDlg( TRUE, _T(".txt"), NULL, OFN_ALLOWMULTISELECT | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST, 
                       _T("Text file (*.txt)|*.txt||"), this);
  INT_PTR res = fileDlg.DoModal();
  </code></pre>
  
  <p>What could cause such a thing?</p>
  
  <p>How do I even debug it?</p>