Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 5th, 2005, 8:25 AM   #1
nauman73
Newbie
 
Join Date: Apr 2005
Posts: 2
Rep Power: 0 nauman73 is on a distinguished road
Question Debugging ActiveX controls (.ocx) in Delphi 5

Hi

I have the source code of an ActiveX control and I want to debug it to see how it works. There is also a client executable and I was told by the provider that I should add the path to this executable in the Run/Parameters menu (in the Host Application text field) of the ActiveX control project. According to him this would allow me to set breakpoints inside the ActiveX code and see how it works.

However, when I run the executable inside Delphi debugger and use it so that I hit the breakpoints inside the ActiveX code, it does not stop on any of the breakpoints. Although the required function is successfully carried out.

I also have the source project for the client. I have verified that the menu commands of the client executable correctly point to the relevant functions of the ActiveX control. The ActiveX control is added to the client form from the ActiveX component palette, where I add it myself using the Component/Import ActiveX Control menu of Borland Delphi 5. I have added the ActiveX control from same folder where the source files for ActiveX control are located.

I have also tried playing with Project/Options for the ActiveX source porject to add debugging information in the ActiveX control. Still it does not stop on the breakpoints when I run the client from inside the ActiveX project in a debugger session.

Any help in this regard will be most valuable for me.

Regards
Nauman
nauman73 is offline   Reply With Quote
Old Jun 27th, 2005, 4:13 PM   #2
M.Hirsch
Newbie
 
Join Date: Jun 2005
Posts: 26
Rep Power: 0 M.Hirsch is on a distinguished road
What's your project settings? I worked with Delphi 5 quite a lot, and I think you maybe got your settings wrong there.
Debug Symbols: ON!
Optimization: OFF!

M.
__________________
Multilingual Content Management
M.Hirsch is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:47 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC