SatishM

I am trying to run the VS 2005 Team Suite Profiler on our WPF app but I can't get it to start. I tried using both the IDE and the command line tools but I get a "Process Hook Failed" error. This also happens with the sample app after following instructions at http://msdn2.microsoft.com/en-us/library/ms182398(VS.80).aspx so I am thinking it's not specific to our app.

In the Output window of VS, I see this -

Profiler started

Successfully attached to process: 4132

Exited from process: 4132

Collection file exited: C:\DOTNET\peopletrax\CS\PeopleTrax\PeopleTrax061214.vsp

Profiler exited

PRF0025: No data was collected.

===================== Profiling Complete =====================

I am using XP Pro OS.

Please let me know if you have any idea what I need to do.

Thanks,

Satish



Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

SatishM

An Update on the above question:

I can now run the profiler from the command line but I still get the error from the IDE. The difference is that I ran all the commands from the CMD Shell command window found in WIndows SDK (Start -> All Programs -> Microsoft Windows SDK -> CMD Shell) instead of a normal command window.

So I did that and then ran the tool VSPerfReport and I see that the Header.CSV has data in it but not the other files like FunctionSummary.CSV or CallTree.CSV etc.

Any suggestions will be appreciated.

Regards.

Satish





Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

SatishM

This is my second reply to my own question :-)

It never worked for me in Sampling mode, but does in Instrumentation mode. I was able to create a profiler session, launch the app and view the performance results, all from VS 2005. I will make do with it for now until I find an answer to why the Sampling mode doesn't work.

Regards,

Satish





Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

Dave Lubash - MSFT

The message around process hook failed is not very actionable. We will look into improving that for the next full release. The message in this case means, "Some other tool has hooked into the process. We can not profile it."

Thanks,
Dave Lubash
Microsoft Visual Studio Team Developer





Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

HectorCruz

Same problem:

Doesn't work in Sampling mode, works in Instrumentation mode. In Sampling mode sends me Process Hook Failed error.

Does the change in the PDB format for Visual Basic projects after some fix included in Service Pack 1 have something to do with this problem





Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

LeoTohill

Today I opened an MS Support case on this, and learned that it was caused by a conflict with the "Embassy Security Center" product that was pre-installed on my Dell laptop. Removing that product fixed the problem.






Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

Hassan Khan

How is this post helpful Agreeing to change the error message isn't what the poster was asking. He was asking how to fix his problem.

I have seen several of such unhelpful replies on other topics which are marked 'green' as if they really helped that I decided to mention here that please don't mark them as helpful replies.





Re: Visual Studio Performance Tools (Profiler) Process Hook Failed

RedEye1

Dave Lubash post was helpful to me. I had another application verification tool already hooked to my target application. Now it works. Thanks.