Stephen
05-Oct-2007, 11:56 AM
Hi,
When working on the source code of a DLL from Delphi 7 :
1) Add parameters to Delphi to run main application.
2) Put break point in DLL.
3) Run application from Delphi.
4) Go to location in application where break point in DLL is reached.
5) Exit application.
Now make a change in the source code of the DLL, like to display a message box or something.
1) Run application.
2) Proceed to location in application where breakpoint in DLL is caught. (NOT a break point ON the new code, but rather just above it, else it will not work).
3) The new code is executed successfully (ie. the new message box is shown)
HOWEVER
The Delphi Debugger does NOT recognise the new code and does not allow you to add a break point or to step into the new code, even though it is evident that the new code is running.
To compensate we have found that Delphi needs to be closed and re-opened, and only then will the debugger be fully functional again - Until you make another change - which then breaks all over again.
This is a new bug in Eureka version 6 releases and was NOT evident in Eureka 5 versions.
It would appear that Eureka is not re-initializing its hook into the Delphi IDE debugger when working with dynamically loaded DLL's.
When working on the source code of a DLL from Delphi 7 :
1) Add parameters to Delphi to run main application.
2) Put break point in DLL.
3) Run application from Delphi.
4) Go to location in application where break point in DLL is reached.
5) Exit application.
Now make a change in the source code of the DLL, like to display a message box or something.
1) Run application.
2) Proceed to location in application where breakpoint in DLL is caught. (NOT a break point ON the new code, but rather just above it, else it will not work).
3) The new code is executed successfully (ie. the new message box is shown)
HOWEVER
The Delphi Debugger does NOT recognise the new code and does not allow you to add a break point or to step into the new code, even though it is evident that the new code is running.
To compensate we have found that Delphi needs to be closed and re-opened, and only then will the debugger be fully functional again - Until you make another change - which then breaks all over again.
This is a new bug in Eureka version 6 releases and was NOT evident in Eureka 5 versions.
It would appear that Eureka is not re-initializing its hook into the Delphi IDE debugger when working with dynamically loaded DLL's.