title: Why am I getting an exception whenever I use the CFileDialog?
body: <p>Whenever I run my application under the debugger, I get the following exception when using CFileDialog to browse for a file to open</p>
  
  <pre><code>First-chance exception at 0x769db9bc in MyApp.exe: 0x000006BA: The RPC server is unavailable.
  First-chance exception at 0x74e8cd99 in MyApp.exe: 0xC0020043: An internal error occurred in RPC.
  MyApp.exe has triggered a breakpoint
  </code></pre>
  
  <p>This happens using VS2008 on Windows 7 64 bit, it doesn't happen doing the same thing under XP.  There are no useful symbols on the call stack indicating why this is happening, and I can avoid the problem simply by turning off exceptions in the debugger, but I'm wondering why this is happening and how to avoid it.</p>