Re: Debugging thru AxHost



On Mar 7, 3:27 pm, "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
wrote:
In VB.NET application, set breakpoint at some place where you absolutely
sure that the ocx will be loaded. After that breakpoint is hit, check the presence
of the ocx and its symbols in Modules window.

I did the above step & the ocx control is loaded and its symbol is al
lodaded.

This is the line I copied from the modules window.

"DebTest.ocx D:\debug test\DebTest.ocx N/A N/A Symbols loaded. D:
\debug test\DebTest.pdb 33 1.00.0.0 3/6/2007 5:28 PM 11000000-11006000
[3172] W.exe: Native "

I have set break point in the ocx also but it is not hiting the break
points of the ocx control.

Try to show a message box from the ocx (when it is called by the client app).
While this message box is shown, break into debugger, check the call stack
and switch to a stack frame that belongs to the ocx. Will the debugger be able
to show you the ocx' sources in this case?

Oleg- Hide quoted text -

Yes in this case the Debugger shows the VB6 ocx source in VB.Net. But
I want step into VB6 Ocx control.

How I have to step into VB6 ocx.

Mano



.



Relevant Pages

  • Re: How to debug an OCX?
    ... I tried executing the OCX directly from VB. ... You can then use the VC debugger or WinDbg to view and step thru your code. ... One way to debug a .ocx is to open it in the IDE then set the "Start ... You can also create multiple VB IDEs - one running the container app, ...
    (microsoft.public.vb.general.discussion)
  • Re: Debugging thru AxHost
    ... While this message box is shown, break into debugger, check the call stack ... and switch to a stack frame that belongs to the ocx. ... Yes in this case the Debugger shows the VB6 ocx source in VB.Net. ...
    (microsoft.public.vsnet.debugging)
  • Re: Debugging thru AxHost
    ... While this message box is shown, break into debugger, check the call stack ... and switch to a stack frame that belongs to the ocx. ... AFAIR breakpoints always had to be used as a workaround. ...
    (microsoft.public.vsnet.debugging)
  • Re: VS2005 Assistent =?UTF-8?B?ZsO8ciBNRkMtQWN0aXZlWC1DdHJscw==?=
    ... An dieser Stelle hängt der entsprechende Prozess in VS2005 aber fest. ... Es wird wahrscheinlich regsvr32 mit Parameter [mein OCX] aufgerufen. ... In den Projekteinstellungen für den Debugger die entsprechende regsvr32 Befehlszeile angeben. ...
    (microsoft.public.de.vc)
  • Re: How to debug an OCX?
    ... "Open it in the IDE"? ... Open the OCX directly? ... There are of course several different methods to debug VB components here ... You can then use the VC debugger or WinDbg to view and step thru your ...
    (microsoft.public.vb.general.discussion)

Loading