This interface is sent by the debug engine (DE) to the session debug manager (SDM) when a thread has run to completion. (http://msdn.microsoft.com/en-ca/library/bb162330.aspx)
Наследование: AD7AsynchronousEvent, IDebugThreadDestroyEvent2
Пример #1
0
        /// <summary>
        /// Sends the event.
        /// </summary>
        /// <param name="engine"> The AD7Engine object that represents the DE. </param>
        /// <param name="exitCode"> The thread's exit code. </param>
        /// <param name="thread"> The AD7Thread object that represents the thread. </param>
        internal static void Send(AD7Engine engine, uint exitCode, AD7Thread thread)
        {
            var eventObject = new AD7ThreadDestroyEvent(exitCode);

            if (thread == null)
            {
                foreach (AD7Thread t in engine.thread)
                {
                    engine.Callback.Send(eventObject, IID, t);
                }
                engine._currentThreadIndex = -1;
            }
            else
            {
                engine.Callback.Send(eventObject, IID, thread);
            }
        }
Пример #2
0
 internal static void Send(AD7Engine engine, uint exitCode, AD7Thread thread)
 {
     var eventObject = new AD7ThreadDestroyEvent(exitCode);
     if (thread == null)
     {
         foreach (AD7Thread t in engine.thread)
         {
             engine.Callback.Send(eventObject, IID, t);
         }
         engine._currentThreadIndex = -1;
     }
     else
     {
         engine.Callback.Send(eventObject, IID, thread);
     }
     //            engine.Callback.Send(eventObject, IID, null);
 }