Performs a cooperative stop on all threads that are running managed code in the process.
HRESULT Stop ( [in] DWORD dwTimeoutIgnored );
Stop performs a cooperative stop on all threads running managed code in the process. During a managed-only debugging session, unmanaged threads may continue to run (but will be blocked when trying to call managed code). During an interop debugging session, unmanaged threads will also be stopped. The
dwTimeoutIgnored value is currently ignored and treated as INFINITE (-1). If the cooperative stop fails due to a deadlock, all threads are suspended and E_TIMEOUT is returned.
The debugger maintains a stop counter. When the counter goes to zero, the controller is resumed. Each call to
Stop or each dispatched callback increments the counter. Each call to
ICorDebugController::Continue decrements the counter.
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: Available since 1.0