本文整理汇总了C#中ICorDebugThread.GetID方法的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugThread.GetID方法的具体用法?C# ICorDebugThread.GetID怎么用?C# ICorDebugThread.GetID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICorDebugThread
的用法示例。
在下文中一共展示了ICorDebugThread.GetID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CorDebugThread
public CorDebugThread(ICorDebugThread _thread)
{
m_corThread = _thread;
uint id;
m_corThread.GetID(out id);
ID = id;
}
示例2: ExitThread
public void ExitThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
{
Thread thread = process.GetThread(pThread);
// ICorDebugThread is still not dead and can be used for some operations
if (thread != null) {
EnterCallback("ExitThread " + pThread.GetID(), pThread);
thread.NotifyExited();
} else {
EnterCallback("ExitThread " + pThread.GetID(), process.CorProcess);
// .NET 4.0 - It seems that the API is reporting exits of threads without announcing their creation.
// TODO: Remove in next .NET 4.0 beta and investigate
process.TraceMessage("ERROR: Thread does not exist " + pThread.GetID());
}
try {
ExitCallback();
} catch (COMException e) {
// For some reason this sometimes happens in .NET 1.1
process.TraceMessage("Continue failed in ExitThread callback: " + e.Message);
}
}
示例3: CreateThread
public void CreateThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
{
// We can not use pThread since it has not been added yet
// and we continue from this callback anyway
EnterCallback("CreateThread " + pThread.GetID(), pAppDomain);
Thread thread = new Thread(process, pThread);
process.threads.Add(thread);
ExitCallback();
}
示例4: _UpdateActiveThread
void _UpdateActiveThread(ICorDebugThread thread)
{
if (null == thread)
{
int i33 = 33;
}
else
{
lock (dbgproc)
{
//dbgproc.idbgthd = thread;
thread.GetID(out dbgproc.ActiveThreadID);
//thread.GetActiveFrame(out dbgproc.idbgfrm);
}
}
}
示例5: CreateThread
public void CreateThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
{
// We can not use pThread since it has not been added yet
// and we continue from this callback anyway
EnterCallback(PausedReason.Other, "CreateThread " + pThread.GetID(), pAppDomain);
Thread thread = new Thread(process, pThread);
process.Threads.Add(thread);
thread.CorThread.SetDebugState(process.NewThreadState);
ExitCallback();
}
示例6: CorThread
public CorThread(ICorDebugThread thread)
{
corThread = thread;
corThread.GetID(out id);
//corThread.G
}