Mega Code Archive

 
Categories / Delphi / System
 

How to debug a DLL in Windows XP

Title: How to debug a DLL in Windows XP Until up to Win2k, you had to set the HostApplication on Start=Parameter to debug a DLL. This will not work on Windows XP. That Delphi will know the DLL if you run the progam, you have to do the following: The program must load the DLL. After this, press Ctrl-Alt-M in Delphi, to list all modules. Sometimes there will be the DLL with path. Solution: Right click on the DLL, select "Reload symbols" and set the full path to the DLL. Now the breakpoints should be active. When the DLL will be compiled in the system path (directory in PATH) this problem dont occur.