DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging a vc dll from the diadem?

Solved!
Go to solution

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

Message Edited by dragnov on 09-16-2009 04:02 AM
0 Kudos
Message 1 of 5
(4,663 Views)

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?  
0 Kudos
Message 2 of 5
(4,659 Views)

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!!

0 Kudos
Message 3 of 5
(4,636 Views)

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.

0 Kudos
Message 4 of 5
(4,630 Views)
Solution
Accepted by topic author dragnov

Hi,

 

Thank you for the reply. Those steps helped me in debugging the code.  Thank you for the timely help.

 

With regards,

 

SKB

0 Kudos
Message 5 of 5
(4,627 Views)