0
    for (auto& Entry : recursive_directory_iterator("C:\\", directory_options::skip_permission_denied)) {
        if (!Entry.exists() || !Entry.is_regular_file()) {
            continue;
        }

        cout << Entry.path().string() << endl;
    }

I am looping through all files in the C drive, with skip_permission_denied on. Yet I get an unhandled exception 0x76859962 when it gets to %localappdata%\Microsoft\Windows Sidebar\, which contains a settings.ini file and an empty folder named Gadgets. This happens both with and without admin permissions.

imtouchk
  • 41
  • 1
  • 6
  • What is your question? I guess you would ask [What is a debugger and how can it help me diagnose problems?](https://stackoverflow.com/questions/25385173/what-is-a-debugger-and-how-can-it-help-me-diagnose-problems) – 273K Sep 06 '20 at 15:56
  • The recursive directory iterator doesn't "[throw] an unhandled exception". It **throws an exception**. The **program** doesn't catch it, which is why the exception is unhandled. – Pete Becker Sep 06 '20 at 17:45
  • Perhaps you want to catch the exception and look at it. – n. 1.8e9-where's-my-share m. Sep 06 '20 at 17:52

0 Answers0