Problem debugging ActiveX component in Windows Form

S

Steve Roberts

I've added an ActiveX component to a Windows Form and this seems to be
working fine.
However, I now need to debug the ActiveX component, but can't step into the
component - I can step in the Windows Form code, but can't go into any of
the code referenced by the ActiveX component, even though this has all been
built with a debug solution configuration.

Does anyone know how I can get debugging to work in the ActiveX component ?

Thanks for any help,
Steve
 
G

Gevik Babakhani

To my info,
You cannot debug the ActiveX control inside the .NET debugger.
This is because of the following.
1. COM/DCOM/ActiveX debug information in in essense very different than .NET
version. The .NET debugger simply won't understand.
2. The activex componenet you are using is access through a series of
wappers and Type Libraries and IDL interfaces.

Perhaps you can start the activex component in debug mode and wait until a
process to hook. the start the .NET app in debug mode and step through.
See if that will work.

Regards,
Gevik.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top