microsoft / Windows-classic-samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Other
5.1k stars 3.23k forks source link

CommonFileDialog example questions #286

Open sirgru opened 1 year ago

sirgru commented 1 year ago

After running the example, Visual Studio Output Window logs the following error: Exception thrown at 0x00007FFEE268CD29 (KernelBase.dll) in CommonFileDialogSDKSample.exe: 0x000006BA: The RPC server is unavailable. The application seems to behave correctly. Is this normal?

Also, I've noticed that after the dialog window is shown, my application takes a long time to close. That is, the window closes but the associated console that it spawns stays on for a second. It seems that using Show() causes a bunch of dlls to be loaded, which leads to increased shutdown time. Is this normal?