09-16-2009 04:02 AM - edited 09-16-2009 04:02 AM
Hi all,
I want to debug a vc dll that is being used in the diadem script. I Have registered the dll in the diadem. My primary aim is to debug the vc++ code from the diadem once the function in the vc dll is occured in the diadem script. My version of diadem is 9.1 and vc is 6. I have given the target application in the visual studio to be diadem and tried running in the debug but the debug is not going in to the vc code.
If some one have encountered the same before let me know the steps in doing this process. The dll i'm using is a GPI extension DLL
With regards,
SKB
Solved! Go to Solution.
09-16-2009 05:23 AM
Hello SKB!
I did this - the same way you did - for a long time without any problem. The only thing I can imagine is that the VC output DLL ist not the DLL you load in DIAdem. In a standard configuration the DLL debug version will be in the 'debug' directory of your project. In DIAdem this DLL must be registered. To be 100% confident you can use the tool 'Process Monitor' from SysInternals to view all DLLs loaded by DIAdem. If you check this just run your script in DIAdem first because DIAdem loads the DLLs on demand.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
09-17-2009 12:06 AM
Hi Matthias,
Thank you for the reply. I have checked the way you told me to do by using the process monitor. Diadem is calling the dll in the debug folder of my vc app. But, on encountering the dll function i'm not getting the control to vc code where i'm waiting with a breakpoint. If there is something else to be notted down please let me know.
With regards,
SKB!!
09-17-2009 02:13 AM
In VC 6 you have to do a special thing.
In the debug Tab of VC there is a combo box.
In the first entryyou add the Exe to debug.
If you set the combo box to:
Additional dlls
you can add your dll.
Afterwards the debugging should work.
09-17-2009 03:10 AM
Hi,
Thank you for the reply. Those steps helped me in debugging the code. Thank you for the timely help.
With regards,
SKB