COM+ performance profiling error

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

COM+ performance profiling error

Postby pcorkum » Tue Aug 11, 2009 3:28 pm

I've been trying to do performance profiling of COM+ and have kept running into a "COM Surrogate" error every time I try and start a profiling session. What I have found is that if I have more than 1 class in the COM+ application with a minimum pool size set to something other than 0, this error always shows. However, if none or only one have this value set, I have no problems. This seems like a defect to me. Am I missing something?
pcorkum
 
Posts: 4
Joined: Tue Aug 11, 2009 3:22 pm

Postby Chris.Allen » Wed Aug 12, 2009 5:51 pm

I don't think you are missing anything. I'm afraid I do not know half of the terms you describe but I can tell that you do and will assume that it is, indeed, a defect so I'll log a bug and post the reference. I will then eventually know what is being done. Sorry don't have more constructive news.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Chris.Allen » Fri Aug 21, 2009 1:48 pm

Actually, I'be been told we need more information before we log a bug. Can you send some log of the error (either the stack trace or windows event log entry)? Would you be able to help us try to reproduce the problem here (sending your app perhaps)?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

COM+ Performance profiling error

Postby maheshws » Mon Aug 24, 2009 6:41 pm

I am also getting the exact same error as mentioned by pcorkum.
The details from the Event Log are:

Faulting application dllhost.exe, version 5.1.2600.2180, stamp 41107b06, faulting module profilercore.dll, version 5.1.0.14, stamp 4a574ca2, debug? 0, fault address 0x0002e3d7.

Another log is :
Bucket 1410467010, bucket table 1, faulting application dllhost.exe, version 5.1.2600.2180, stamp 41107b06, faulting module profilercore.dll, version 5.1.0.14, stamp 4a574ca2, debug? 0, fault address 0x0002e3d7.

It is certainly not possible to send you our application but I will be happy to do a WebEx so that you can investigate. I am based out of North Bay in California and my work hours are from 8:30 AM Pacific Standard Time to 6:00 PM Pacific Standard Time.

This is important so please reply ASAP.
maheshws
 
Posts: 2
Joined: Mon Aug 24, 2009 6:28 pm

Postby pcorkum » Mon Aug 24, 2009 10:10 pm

maheshws is showing the same error that I am. It is very simple to recreate the problem using a sample application. Create a C# application with 2 classes that implement ServicedComponent. Have a single method in each and add the comvisible attribute and set it to true. Also set the ObjectPooling attribute on the class to have a MinPoolSize other than 0 set on each. Build, run regsvcs and then try to profile it. If you set one or both to have a minpoolsize of 0, it works just fine.
pcorkum
 
Posts: 4
Joined: Tue Aug 11, 2009 3:22 pm

Postby AndrewH » Wed Aug 26, 2009 10:49 am

I'm only able to reproduce this error for the first COM+ application I profile: subsequent sessions seem to work without an issue until I reboot my XP machine. The issue appears not to be present at all for me under Vista. Does restarting the application immediately after the failure fix the problem, or does it persist?

The problem appears to be due to a module load finished event arriving without a matching module load start event - I suspect that this could be due to a race condition in the CLR, but having to reboot my machine every time I want to try to reproduce this issue makes a concrete diagnosis difficult.
Andrew Hunter
Software Developer
Red Gate Software Ltd.
AndrewH
 
Posts: 134
Joined: Thu Aug 17, 2006 3:44 pm

Still not working

Postby maheshws » Thu Aug 27, 2009 6:31 pm

I am being able to reproduce this error consistently.Restarting the application immediately after the failure still does not fix the problem. I need to know if you guys are logging a defect so that I can report to my peers accordingly. If not , then please let us know how this can be fixed at our side..
maheshws
 
Posts: 2
Joined: Mon Aug 24, 2009 6:28 pm

Postby Chris.Allen » Fri Aug 28, 2009 2:15 pm

Can anyone having this problem send a mail to: support@red-gate.com subject: "COM+ performance profiling error" and I will get a private build out to you which we believe fixes this problem.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 1 guest