Microsoft KB Archive/167804

From BetaArchive Wiki
Knowledge Base


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

Article ID: 167804

Article Last Modified on 6/8/2005



APPLIES TO

  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++ 6.0 Standard Edition



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.


Additional query words: prep plist profile VWBIss

Keywords: kbtshoot kbbug kbnoupdate kbide KB167804