Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
Lock Verifier
 The Lock has Already been Initializ...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
The Lock has Already been Initialized

Locks violation detected. This provides two messages based on your operating system:

  • For Windows Server 2003: The lock has already been initialized.

  • For Windows XP: Lock has been double initialized.

Usually this stop is generated if a critical section has been initialized more than once. In this case, the stack trace in the Tool Window shows the first initialization of the critical section. The current call stack in the debugger shows where the critical section is being initialized again. It is also possible to get this stop if the critical section or its debug information structure has been corrupted. In this case, the stack trace provided in the Tool Window may be incorrect.

Lock – Critical section address

Owner – N/A

DebugInfo – Critical section debug information address

Description – The lock has already been initialized OR Lock has been double initialized

Trace Description – First Initialization of the lock

Check the contents of the current call stack, which shows where the lock is being initialized for the second time. Check the Tool Window to find the stack trace for the first initialization.

Frequency of this error is high.

Concepts

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker