How to: Find Which DLL Your Program Crashed InĀ 

NoteNote

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

If your application crashes during a call to a system DLL or someone else's code, you need to find out which DLL was active when the crash occurred. If you experience a crash in a DLL outside your own program, you can identify the location using the Modules window.

To find where a crash occurred using the Modules window

  1. Note the address where the crash occurred.

  2. From the Debug menu, choose Windows, and click Modules.

  3. In the Modules window, find the Address column. You may need to use the scrollbar to see it.

  4. Click the Address button at the top of the column to sort the DLLs by address.

  5. Scan the sorted list to find the DLL whose address range contains the crash location.

  6. Look at the Name and Path columns to see the DLL name and path.

See Also

Tasks

How to: Debug DLLs
How to: Use the Modules Window