Solved

Debugging COM Server applications from ASP

Posted on 1999-01-14
4
223 Views
Last Modified: 2013-11-25
Does anyone know how to debug an InprocServer32 COM object written in c++ (ATL using VC50) called from an ASP.  My ASP is using the CreateObject(myComClass.myComObject) function to invoke it.  I know how to debug an InProcServer called from a VB app, another dll, or an exe.  However, I don't know what to attach to or what executable to use for this debug session.  
I'm running NT server 4.0 with IIS.  I'm also using MTS but have have it disabled for now.
0
Comment
Question by:readit1
  • 3
4 Comments
 

Author Comment

by:readit1
ID: 1182271
Edited text of question
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1182272
The easiest way is to load your workspace for your COM project. Set your breakpoints wherever you want them. Then select the Build | Start Debug | Attach To Process. Make sure Show System Process is checked. Then select inetinfo and press OK. This will cause the debugger to watch those breakpoints.
0
 

Author Comment

by:readit1
ID: 1182273
thui, thanks for the answer.  Actually, I tried that today.  At least I think I did.  I tried so many things, I'm so confused!  I'm going to try this again tomorrow and I'll let you know what happened.

Thanks, Sam
0
 

Author Comment

by:readit1
ID: 1182274
thui, you were right!  Your solution was a success.  There were two issues that I came across however.

1) I had to actually run a query using ASP before starting my debugging session.  This loads some additional vbscript and ASP Dll's that are needed.  

2) inetinfo gets unloaded after each session. Consequenly, I have to restart the computer after each session.  I tried manually executing inetinfo after my debugging session but it nly stayed running for a few seconds.

Have you experienced these conditions?

Sam



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now