Re: Can't Debug COM Interface
- From: "MBO" <markus.boenke@xxxxxx>
- Date: Tue, 24 Jan 2006 12:31:53 +0100
Hello Oleg,
I finally can debug now. The problem was that the MFC Host application is
not loading the vb.net net dll directly but is starting up another exe file
that is loading the dll. if I specify the second exe as host application I
and then it works.
Thanks and Regards
Markus
"Oleg Starodumov" <com-dot-debuginfo-at-oleg> schrieb im Newsbeitrag
news:eAcmOmaHGHA.1728@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hello Markus,
>
>> the debugger is set to CLR and Native, if I look into the registry the
>> path
>> to the DLL is also correct. When I start to debug the application the DLL
>> is
>> not copied to another location. For testing purposes I wrote in the
>> meantime
>> a com client in vb.net which is referencing the interface of the COM
>> Server
>> class. If I use this application as Host application I can debug without
>> problems. If I'm not including debug info in the client, the same
>> problem,
>> it's not possible to debug the server application. As the MFC application
>> also does not include debug symbols I'm not sure if debugging is possible
>> in
>> this configuration, or should this in general be possible what do you
>> think?
>>
>
> Debugging in this configuration is definitely possible.
>
> Could you please try the following steps and tell me what outcome you get:
>
> 1. Rebuild the VB.NET DLL (before rebuild, check that debug information is
> enabled
> and optimizations are disabled in build settings).
>
> 2. Open the MFC executable as a separate solution (File | Open Solution,
> open the .exe file),
> all subsequent steps should be done in this new solution.
>
> 3. In the project settings of this new solution, set the debugger type to
> "Managed only"
> (Project properties | Configuration Properties | Debugging | Debugger Type
> = "Managed Only")
>
> 4. Open a source file of the VB.NET COM component and set breakpoints in
> it.
>
> 5. Start debugging and make an action that should run the code where
> breakpoints are set.
>
> 6. If breakpoints are not hit, break into debugger (Debug | Break All) and
> open Modules window.
>
> 7. In Modules window, check the path to the VB.NET DLL. Is it correct?
>
> 8. Also in Modules window, check if symbols for the DLL are loaded.
>
> 9. If symbols are not loaded, R-Click on the module, choose Reload
> Symbols,
> navigate to the DLL's .PDB file and open it. Will symbols be loaded now?
>
> Oleg
>
>
>
>
>
.
- References:
- Can't Debug COM Interface
- From: MBO
- Re: Can't Debug COM Interface
- From: Oleg Starodumov
- Re: Can't Debug COM Interface
- From: MBO
- Re: Can't Debug COM Interface
- From: Oleg Starodumov
- Re: Can't Debug COM Interface
- From: MBO
- Re: Can't Debug COM Interface
- From: Oleg Starodumov
- Can't Debug COM Interface
- Prev by Date: Re: Post-mortem Application Error
- Next by Date: Trace.Write in helper class not showing up in Trace.axd
- Previous by thread: Re: Can't Debug COM Interface
- Next by thread: Debugging C++ (atl) .dll with Visual Studio 2005
- Index(es):
Relevant Pages
|
Loading