Source Profiler does not execute in Visual C++ 5.0 and in Visual C++ 6.0 (167804)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q167804

SYMPTOMS

The Source Profiler, provided with Microsoft Visual C++, versions 5.0 and 6.0, may not execute from the Developer Studio. When attempting to profile, Developer Studio switches to the Profiler output window but the profiler tools are not executed and no output is produced.

CAUSE

This problem occurs because Developer Studio fails to create the correct environment paths for the spawned process and cannot find the profiler tools using the current path variables.

RESOLUTION

To work around this problem:

For Visual C++, version 5.0 on Windows 95, Windows 98, or Windows Millennium Edition (Me), add the following directories to the PATH statement in your Autoexec.bat file:
   PATH=[Developer Studio Path]\SharedIDE\Bin; [Developer Studio
   Path]\VC\Bin
				
For Visual C++, version 6.0 on Windows 95, Windows 98, or Windows Millennium Edition (Me), add the following directories to the PATH statement in your Autoexec.bat file:

   PATH=[Visual Studio Path]\Common\MSDev98\Bin;[Visual Studio Path]\ 
   VC98\Bin
				


On Windows NT, execute the System applet in Control Panel and select the Environment tab. Add the previous directories to the system's PATH environment variable, not the individual user's PATH variable.

On Windows 2000, execute the System applet in Control Panel, select the Advanced tab and click Environment Variables button. Add the previous directories the the System's PATH environment variable.

Finally, verify that these directories are also referenced in the IDE by following these steps:

  1. On the Tools menu, click Options.
  2. On the Options dialog box, click the Directories tab.
  3. Select Executable Files from the Show Directories For list.
  4. Look for the appropriate directories in the Directories list.
  5. If necessary, add the full path to the Bin directories of Developer Studio and Visual C++ (as noted previously). To add to the Directories list, click on an blank line and type.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:6/8/2005
Keywords:kbtshoot kbBug kbide kbNoUpdate KB167804 kbAudDeveloper