?
Solved

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

Posted on 2007-07-26
3
Medium Priority
?
721 Views
Last Modified: 2013-12-14
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 A
0
Comment
Question by:anugrah
  • 2
3 Comments
 
LVL 1

Author Comment

by:anugrah
ID: 19580314
I spent some time on Debugging of COM+ Libraries Applications and findings were fruitful :)

In fact we can debug any code i.e. COM+ Server, COM+ Library and even C# Class Libraries without giving that GUID in the settings file. All we have to do is to attach the debugger to dllhost.exe having Process ID of GSecurity (Process ID can be seen in the component services panel -> view status); while attaching the process we have to make sure that native and managed both types are selected.
0
 
LVL 1

Author Comment

by:anugrah
ID: 19580324
Hi Administrators / Community Service,

Kindly  close this quetion and return my points as i have solved the query on my own.
For the help of other users i have pasted the asnwer here as well.

Thanks and Regrds
Atreya A
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 19769148
anugrah,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question