We've had issues with debugging DLLs on XP and W2K as well.
 
Stacey is correct in saying that all debug options should be checked first and foremost.
 
One workaround we've used seems to rely on the fact that Windows seems to prefer your DLL to be in the Windows\System directory.  You can set the Output directory of your project to put it there automatically.
 
Once you've run your DLL (and presumably your host app has opened), go back to Delphi and hit Ctrl+Alt+M (I think).  This should open a window showing you which modules are loaded.  Find yours, and see if the entry points for all your functions are listed.  They should be if Delphi is correctly finding the debug information for your DLL.
 
If you're still having problems, drop me a line, and I'll see if we had to do anything else.
 
HTH,
 
Conor
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 
Hi, just moved to a new machine with XP (was on NT). Re-installed Delphi 6 and now breakpoints don't work! If I breakpoint a line (red dot), and then run the project, it's as though it runs a different version, as the "blue balls" don't appear in the source margin and the breakpoints never execute. (Breakpoints don't go the disabled colour either).
  • the breakpoints are on obvious places that have to execute, like form create
  • I've re-built the project a number of times, & blue balls appear, but go when I run the project and don't return.
  • I've deleted all files except .pas, .dpr and .dfm, and rebuilt project - still no luck
  • I've checked that the dll is being created in the directory I expect and that it definitely runs that dll (not another one created elsewhere)
  • I've loaded another project and re-built, to see if all projects are effected - breakpoints didn't work on this one either

 

Are there some compiler, linker or debugger options, that must be on, in order for breakpoints to work? (they are at their default install settings at present)

Reply via email to