Access Violation Occurs When You Run the SPY++ Program in Windows Server 2003 (816538)



The information in this article applies to:

  • Microsoft Windows Server 2003, Standard Edition
  • Microsoft Windows Server 2003, Enterprise Edition
  • Microsoft Windows Server 2003, Datacenter Edition
  • Microsoft Visual Studio 6.0 SP5
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Windows Small Business Server 2003, Premium Edition
  • Microsoft Windows Small Business Server 2003, Standard Edition

SYMPTOMS

When you start the Spy++ program from Microsoft Visual Studio 6 or Microsoft Visual Studio .NET, and then on the Spy menu, click Processes or Threads, you may receive an error message similar to the following error message:
The instruction at "0x0043d5cc" referenced memory at "0x4352680b". The memory could not be "read".

Click on OK to terminate the program
Click on CANCEL to debug the program

CAUSE

This behavior may occur if the following conditions are true:
  • You install Visual Studio 6 or Visual Studio .NET on a Microsoft Windows Server 2003-based computer.

    -and-
  • You run the Spy++ program as a limited user.
An access violation occurs because the SPY++ program tries to open performance counter registry keys under the context of the limited user. The program cannot successfully open the performance counter registry keys unless it does so in the context of a user account that is a member of the Performance Monitor Users local group.

RESOLUTION

To resolve this behavior, add the limited user to the Performance Monitor Users local group on the server.

Modification Type:MajorLast Reviewed:12/18/2003
Keywords:kbprb KB816538