Advertisement

07.26.2007 at 04:34AM PDT, ID: 22722318
[x]
Attachment Details

Unable to Debug the COM+ Library Application (C++)

Asked by anugrah in DCOM, Microsoft Visual C++, Windows ATL / WTL / COM Programming

Tags: debug

Hi Everyone !

I have a web-application which has it own ISAPI implementation.
i.e. backend is COM+ Server Applications, COM+ Library Applications, C# .NET Class Libraries but it uses its own framework to produce the webpages at runtime using CSS Stylesheets, XML Data and XSL.

There are 2 COM+ Server Applications GContext and GSecurity.

Now if i have to debug the C# code then in settings i have mentioned to start dllhost.exe as an external program and gave the GUID of GSecurity as an argument like this /ProcessID:{B1CE1DD1-BA2A-40A5-8B6D-C46CCC88566A}. This way i can sucessfully debug the C# code.

If i have to debug the COM+ Server Applications then i attach the process to correct dllhost.exe with matching Process ID.

Now the problem is that I am not able to debug the COM+ Libraries Applications!!!

On my part i tried following things(point a & b given below) just on hit-n-trial basis but no use:
a.)
-------------------------------------------------------------------------
I followed these steps to debug the COM+ Library Application:
1.) Created a new solution
2.) Added the COM+ Server App (GContext or GSecurity in my case)
3.) Added a COM+ Library App( GISAPI / GUGL / GDAL)
4.) Added breakpoints to all methods.

Now only the breakpoints in the COM+ Server App code were hit and breakpoints in COM+ Library App were never hit .....though COM+ Library was executing normaly .. confirmed with the help of OutputDebugString.

b.)
---------------------------------------------------
Also i tried to debug the COM+ Library application in the way i an debugging C# code(by starting dllhost.exe as an external program through settings page) but still i can not debug the COM+ Library App.

Can you please suggest me some way to debug the code of COM+ Library Application?

Thanks in Advance
Anugrah AStart Free Trial
[+][-]07.26.2007 at 10:00PM PDT, ID: 19580314

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.26.2007 at 10:03PM PDT, ID: 19580324

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2007 at 01:40PM PDT, ID: 19769148

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: DCOM, Microsoft Visual C++, Windows ATL / WTL / COM Programming
Tags: debug
Sign Up Now!
Solution Provided By: EE_AutoDeleter
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32