'SyncLock' statements are not valid in the Immediate window

The SyncLock statement synchronizes threads and is not permitted in a debugging context.

Error ID: BC30135

To correct this error

  • Do not issue a SyncLock statement in the Immediate window.

See Also

Reference

Immediate Window

SyncLock Statement