Keep getting error "The selected process was not running..."

Memory profiling for .NET developers

Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

Keep getting error "The selected process was not running..."

Postby anders.vejen » Thu Nov 24, 2011 12:32 pm

Hi

I keep getting the annoying error \"The selected process was not running when the selected snapshot was taken.\"

I use VS team 2008 (details below) with ANTS .NET memory profiler 7.1.

My application is using WinForms and is written in .NET 3.5.

I start the profiling from the ANTS menu, and take the first snapshot no problem. I then perform some actions in the application and even though the application continues to run, I get the above error, 3-4 times, sometimes more, before succesfully taking a snapshot.

What is going on?




Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Enterprise

Microsoft Visual Basic 2008 91904-270-5191345-60429
Microsoft Visual Basic 2008

Microsoft Visual C# 2008 91904-270-5191345-60429
Microsoft Visual C# 2008

Microsoft Visual C++ 2008 91904-270-5191345-60429
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office 91904-270-5191345-60429
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Studio Team System 2008 Development Edition 91904-270-5191345-60429
Microsoft Visual Studio Team System 2008 Development Edition

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.


Microsoft Visual Web Developer 2008 91904-270-5191345-60429
Microsoft Visual Web Developer 2008

AnkhSVN - Subversion Support for Visual Studio 2.1.8400.7
AnkhSVN - Subversion Support for Visual Studio 2.1.8400.7
* Ankh.Package 2.1.8400.7
* Subversion 1.6.11 via SharpSvn 1.6011.1539.9366

SharpSvn is linked to: Apr 1.3.12, Apr-util 1.3.9, Neon 0.29.3, OpenSSL 1.0.0 29 Mar 2010, serf 0.3.1, SQLite 3.6.23, Subversion 1.6.11-SharpSvn-tag-1.6.11@936627, ZLib 1.2.4
SharpSvn is dynamically linked to: Cyrus Sasl 2.1.23
SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.6011.1539.9366

BizTalk Project Package 1.0
Information about my package

Crystal Reports AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008


Enterprise Library Configuration Editor 4.0
Microsoft patterns & practices Enterprise Library Configuration Editor

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB2538241) KB2538241
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2538241.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB944899) KB944899
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947171) KB947171
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947180) KB947180
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB948127) KB948127
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB953256) KB953256
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB971091) KB971091
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971091.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB971092) KB971092
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971092.

Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB973674) KB973674
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973674.

Microsoft Recipe Framework Package 8.0
This package provides services to the guidance packages.

Microsoft StyleCop 4.3
Provides source code style and consistency tools.

Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB945140) KB945140
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.

Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB947888) KB947888
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947888.

Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB948484) KB948484
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948484.

Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB948560) KB948560
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948560.

Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB2251487) KB2251487
This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2251487.

Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB972222) KB972222
This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/972222.

Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB973675) KB973675
This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973675.

Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB956453) KB956453
This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/956453.

Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB967143) KB967143
This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/967143.

ANTS Profiler Add-in
Visual Studio add-in that integrates ANTS Performance Profiler and ANTS Memory Profiler into Visual Studio to allow you to start profiling from inside Visual Studio.
Visit www.red-gate.com for more information.
Copyright (c) 2009-2010 Red Gate Software Inc.
anders.vejen
 
Posts: 3
Joined: Thu Nov 24, 2011 12:10 pm

Postby jrg » Fri Nov 25, 2011 10:40 am

"The selected process was not running when the selected snapshot was taken."


This happens if the profiler is configured to profile child processes (which will be the default if profiling is started from within Visual Studio), and the application being profiled starts processes which later exit, and the process chosen in the dropdown box labelled "Process:" wasn't running during the currently selected snapshot.

Does you application start any other processes (not necessarily .NET ones)?
jrg
 
Posts: 13
Joined: Fri Jul 02, 2010 3:13 pm

Postby anders.vejen » Tue Jun 05, 2012 7:55 am

I'm not aware that our application is starting other processes, but it might do so. I will check the Process: dropdown box to make sure it points at the right process.

Meanwhile, and sorry for the extremely late reply, I have found a work-around. Do avoid the "The selected process was not running..." error, immediately after pressing the snapshot button, I put my application in the foreground. Then it never fails.
anders.vejen
 
Posts: 3
Joined: Thu Nov 24, 2011 12:10 pm


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests