Re: Break points with a "?"
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Mon, 16 Jan 2006 17:14:22 +0200
> I am not sure how it is made that way.
> The "another process" is in VB6.0, for GUI. The debugger is attached to
> this process while debugging in two ways:
> 1. Run the target app (VB6.0), come to the VC++ .Net project, go to
> Debug->Process->Attach->"another process"
> 2. Go to VC++ .Net project->Properties->Configuration
> properties->Debugging->Command. Here key in the "another process" name
> and path. (Now F5 would load this "another process")
>
> Either of the ways, the break points dont break. It was breaking before
> a couple of days back.
>
I am not sure that I understand the configuration, but it looks like the DLL
contains a COM component, which is called from VB6 application. Right?
If it is right, the COM component should be an "in-process" COM server,
which therefore should run in the same process with the client (unless it is
configured so that it is hosted in another ("surrogate") process, e.g. dllhost.exe,
and usually it is done using COM+ or DCOM configuration applets).
If you do not make any explicit steps to register the component to run in the
surrogate process, then it should run in the same process with the client.
That is, in the same process with VB6 application. Then the DLL should be visible
in Modules window of the debugger when it is attached to the VB6 application's process
(and if it is not visible there, it means that it is not loaded at all, and you should determine
why it is not loaded).
If you do register the component to run in a surrogate process, the DLL will
be loaded into the surrogate process, and you should attach the debugger
to that process.
You can check which process the DLL is loaded into by e.g. printing the current
process id (GetCurrentProcessId()) to the debug output (e.g. using ATLTRACE)
and watching the debug output with the help of this tool:
http://www.sysinternals.com/Utilities/DebugView.html
Oleg
.
- Follow-Ups:
- Re: Break points with a "?"
- From: ravi
- Re: Break points with a "?"
- References:
- Re: Break points with a "?"
- From: Oleg Starodumov
- Re: Break points with a "?"
- From: ravi
- Re: Break points with a "?"
- Prev by Date: Re: Break points with a "?"
- Next by Date: Re: Break points with a "?"
- Previous by thread: Re: Break points with a "?"
- Next by thread: Re: Break points with a "?"
- Index(es):
Relevant Pages
|
Loading