How Can I Tell Which DLL My Program Crashed In?

Full Problem Description: My application crashes during a call to a system DLL or someone else’s code. I’m not sure which DLL was active when the crash occurred. How can I find out?

If you experience a crash in a DLL outside your own program, you can identify the location using the new Module List dialog box.

To find where a crash occurred using the Module List dialog box

  1. Note the address where the crash occurred.

  2. From the Debug menu, click Modules. The Module List dialog box appears.

    The Modules List dialog box has four columns: Module, Address, Path, and Order (which tells you the order in which modules are loaded). You may need to use the scroll bar to see the fourth column. There is a button at the top of each column. DLLs are initially sorted by load order.

  3. Click the Address button to sort the DLLs by address.

  4. Scan through the sorted list to find the DLL whose address range contains the address where the crash occurred.

  5. Note the DLL name and path for future reference.