Unable to attach to the selected process

Analyse application memory usage, including loaded libraries, system heap memory and .NET memory.

Unable to attach to the selected process

Postby AlexBrunner » Mon Jul 17, 2006 6:51 am

I just installed the Memory Tracker on my machine.

When I now run the application and select a process to track, I get the error message : Unable to attach to the selected process.

I have local administrator rights.

Could you please tell me what I should do to get it running?

Regards,
Alex
AlexBrunner
 
Posts: 2
Joined: Mon Jul 17, 2006 6:47 am

Postby Neil Davidson » Mon Jul 17, 2006 8:08 am

Alex,

Have you installed the debugging tools ( http://www.microsoft.com/whdc/devtools/ ... fault.mspx)?
- Neil Davidson
Red Gate Software Ltd
Neil Davidson
 
Posts: 221
Joined: Wed Sep 08, 2004 12:00 pm

Postby AlexBrunner » Mon Jul 17, 2006 9:38 am

Hi Neil

I just installed the mentioned debugging tools. All works fine now.

Thanks for your support.

Regards,
Alex
AlexBrunner
 
Posts: 2
Joined: Mon Jul 17, 2006 6:47 am

Unable to attach to the selected process

Postby aheusser » Tue Jul 29, 2008 10:32 pm

I'm also getting this error and I did install all the required Windows Debugging tools. I have WinXP SP2 and installed the Windows Symbols for XP SP2 as well as the debugging tools version 6.9.3.113.

I'm trying to track the memory of a .NET 2005 application. I've tried to attach to the debug as well as the release version and I've also run the app from within VS.NET 2005 and attach to the exe that way. No luck.

Any ideas what else could be missing or wrong?

Thanks.
Andi
aheusser
 
Posts: 1
Joined: Tue Jul 29, 2008 10:28 pm

Cannot attach to process

Postby jmehta_cinci » Fri Feb 06, 2009 10:42 pm

I've got Debugging Tools for Windows installed. I tried attaching to the w3wp.exe process, and it couldn't.
jmehta_cinci
 
Posts: 1
Joined: Fri Feb 06, 2009 10:35 pm

Postby Brian Donahue » Mon Feb 09, 2009 10:57 am

It's not because of the "illegal characters in path" issue, is it?
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Getting unable to attach to the selected process

Postby pcox101 » Fri Dec 18, 2009 6:10 pm

Hi,

The memory tracker tool seemed like just what I needed to analyze the memory usage of a process, but I am getting the "unable to connect to the selected process" error while connecting to any process.

I have installed version 6.11.1.404 of the Debugging Tools for Windows. Windbg fires up fine, but I just don't seem to be able to connect to any process running with the memory tracker.

This is on a Windows Server 2003 machine.

Any ideas? Anything I can do to provide some diagnostics?

Thanks

Pete
pcox101
 
Posts: 3
Joined: Fri Dec 18, 2009 5:41 pm

Postby Brian Donahue » Fri Dec 18, 2009 7:00 pm

Hi Pete,

I'm not sure where to look for diagnostics. Just about any process should allow you to attach a debugger. Maybe memory tracker doesn't allow you to connect to unmanaged processes as it's primarily meant for .NET?
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Unable to attach....

Postby pcox101 » Fri Dec 18, 2009 9:00 pm

Hi,

No, I don't think that's it. The screenshot on the download page has it showing the memory of explorer.exe which I'm pretty sure is unmanaged. Plus the application I'm trying to connect to is partially managed and I've tried it with unmanaged code (reflector) and it doesn't work either.

The thing is I can connect to processes fine using windbg, so I don't think its the debugger.

Maybe the version of the debugging tools for windows is important? I tried to reflect the assemblies but they've been obfuscated (rather obviously) so I can't even help myself to diagnose.

I suspect that the "unable to attach" error is a generic catch all. If there was a bit more information about why it was unable to connect, that would be helpful!

Thanks

Pete
pcox101
 
Posts: 3
Joined: Fri Dec 18, 2009 5:41 pm

Unable to attach...

Postby pcox101 » Sat Dec 19, 2009 3:08 pm

Hi,

I have done some more investigation and it looks like the tool requires the following registry key/values:
HKCU\\Software\\Microsoft\\DebuggingTools
. Debugging Help - REG_EXPAND_SZ
. Global Flags - REG_EXPAND_SZ
. Release notes - REG_SZ
. WinDbg - REG_EXPAND_SZ

Set the Debugging Help, Global Flags and WinDbg values to the install folder of debugging tools for windows, "c:\\Program Files\\Debugging Tools for Windows (x86)\\" on my system, and leave the Release notes one empty.

Then on my system the memory tracker could actually connect.

It looks like those keys were removed from the Debugging Tools for Windows in later versions.

Hope that helps anyone who wants to use this tool!

Cheers

Pete
pcox101
 
Posts: 3
Joined: Fri Dec 18, 2009 5:41 pm

Postby Chris.Allen » Mon Dec 21, 2009 5:06 pm

Brilliant Pete - that certainly helped me!
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby RobBrooks » Mon Apr 05, 2010 3:48 pm

I'm running Windows 7 and I've just installed the Debugging Tools for Windows and searched for the Registry Keys Pete mentions and I can't find them anywhere.

More info - I downloaded the Microsoft Windows Driver Kit 7.1.0.7600 and *only* checkmarked 'Debugging Tools for Windows'.

Should I have perhaps installed everything?

Like previous posters, I'm currently unable to attach to any process running on this PC with Memory Tracker, although I can attach using windbg.exe
RobBrooks
 
Posts: 1
Joined: Mon Apr 05, 2010 3:41 pm

Postby mariaparacha20 » Mon Apr 25, 2011 12:31 pm

I'm also getting this error and I did install all the required Windows Debugging tools. I have WinXP SP2 and installed the Windows Symbols for XP SP2 as well as the debugging tools version 6.9.3.113.

I'm trying to track the memory of a .NET 2005 application. I've tried to attach to the debug as well as the release version and I've also run the app from within VS.NET 2005 and attach to the exe that way. No luck.

Any ideas what else could be missing or wrong?
mariaparacha20
 
Posts: 2
Joined: Mon Apr 25, 2011 12:26 pm
Location: albama

Re:

Postby Redgie » Thu May 05, 2011 3:22 pm

mariaparacha20 wrote:I'm also getting this error and I did install all the required Windows Debugging tools. I have WinXP SP2 and installed the Windows Symbols for XP SP2 as well as the debugging tools version 6.9.3.113.

I'm trying to track the memory of a .NET 2005 application. I've tried to attach to the debug as well as the release version and I've also run the app from within VS.NET 2005 and attach to the exe that way. No luck.

Any ideas what else could be missing or wrong?

Update your Windows Installer to version 1.1 before installing the debugging tools, maybe you have luck with this. If you are running Windows 2000 or a later version of Windows, then you already have Windows Installer 1.1 or a later version, and there is no need to reinstall it.
Redgie
 
Posts: 1
Joined: Thu May 05, 2011 3:00 pm
Location: USA


Return to Memory tracker

Who is online

Users browsing this forum: No registered users and 1 guest