Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Debugger::NotifyOfCrossThreadDependency Method ()

.NET Framework (current version)
 

Notifies a debugger that execution is about to enter a path that involves a cross-thread dependency.

Namespace:   System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

public:
[ComVisibleAttribute(false)]
static void NotifyOfCrossThreadDependency()

Debuggers must specifically enable callbacks that they wish to receive. A debugger that wants to receive cross-thread dependency callbacks must call the method.

A debugger that has selected NotifyOfCrossThreadDependency can take appropriate action upon notification. For example, performing a function evaluation typically requires freezing all threads except for the thread that is performing the evaluation. If the function evaluation requires execution on more than one thread, as might occur in remoting scenarios, the evaluation will block. The NotifyOfCrossThreadDependency notification informs the debugger that it has to release a thread or abort the function evaluation. The notification is subject to collection after this method returns.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft