'wntdll.pdb not loaded - Can't see the exception

Sometimes when I quit my application (SaviHOST running a DLL that I'm making) I show this screen:

enter image description here

Unfortunately I don't know where the error happens, because it just load that screen, not the line where the exception is made.

How can I fix this? What wntdll.pdb have to do with this? Thanks



Solution 1:[1]

To see what line in your code caused it click continue and then a pop up pops, click retry.

Example: enter image description here

Solution 2:[2]

  1. Connect to Internet.
  2. Enable Microsoft Symbol Servers in Symbol path settings.

enter image description here

enter image description here

  1. Close VS (I used VS 2015)
  2. Restart and Debug With Native. All symbols will be loaded from MS Servers.

enter image description here

Solution 3:[3]

I had this same error, and it turned out to be me trying to delete a pointer that was not initialized with new operator in a class destructor.

example:

class smu
{
public:
    smu();
    ~smu()
    {
         delete voff
    }
private:
    char* voff;
};

Solution 4:[4]

Set the application to use Microsoft's symbols. rebuild and start application, it SHOULD load all symbols for you, and it might take a while depending on your internet screen, I myself am loading all the symbols now... boy it takes time!

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TheLogicGuy
Solution 2 Daniel Cheung
Solution 3 Daniel
Solution 4 UnkownReality