Click here to Skip to main content
15,905,563 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to test the network status Pin
Moak29-Jun-07 1:20
Moak29-Jun-07 1:20 
QuestionRelease the project Pin
kcynic27-Jun-07 3:13
kcynic27-Jun-07 3:13 
AnswerRe: Release the project Pin
aatul27-Jun-07 4:14
aatul27-Jun-07 4:14 
GeneralRe: Release the project Pin
kcynic27-Jun-07 23:37
kcynic27-Jun-07 23:37 
AnswerRe: Release the project Pin
sheshidar27-Jun-07 18:19
sheshidar27-Jun-07 18:19 
GeneralRe: Release the project Pin
kcynic27-Jun-07 23:42
kcynic27-Jun-07 23:42 
QuestionThread debug Pin
RichardS27-Jun-07 2:59
RichardS27-Jun-07 2:59 
AnswerRe: Thread debug Pin
BadKarma27-Jun-07 3:35
BadKarma27-Jun-07 3:35 
I think so, you could give your thread a meaningful name.

Use the following code snippit.
{
  //
  //  internal type
  //
  typedef struct tagTHREADNAME_INFO
  {
     DWORD dwType; // Must be 0x1000.
     LPCSTR szName; // Pointer to name (in user addr space).
     DWORD dwThreadID; // Thread ID (-1=caller thread).
     DWORD dwFlags; // Reserved for future use, must be zero.
  } THREADNAME_INFO;

  //
  //  internal const
  //
  const DWORD MS_VC_EXCEPTION = 0x406D1388;

  THREADNAME_INFO thrdInfo;
   thrdInfo.dwType = 0x1000;
  thrdInfo.szName = "The Name";
  thrdInfo.dwThreadID = 0xffffffff;
  thrdInfo.dwFlags = 0;

  __try
  {
    RaiseException( MS_VC_EXCEPTION, 0, sizeof(thrdInfo)/sizeof(DWORD), (DWORD*)&thrdInfo );
  }
  __except(EXCEPTION_CONTINUE_EXECUTION)
  {
  }
}

I use this technique to simplify the debugging for My CWinThread derived, but i'm confident that it
should work for Worker threads as well. At low lever there isn't a difference.

Hope that this helps.

codito ergo sum

GeneralRe: Thread debug Pin
RichardS27-Jun-07 3:54
RichardS27-Jun-07 3:54 
GeneralRe: Thread debug Pin
led mike27-Jun-07 4:50
led mike27-Jun-07 4:50 
GeneralRe: Thread debug Pin
BadKarma27-Jun-07 5:19
BadKarma27-Jun-07 5:19 
QuestionLVN_BEGINDRAG Pin
baerten27-Jun-07 2:44
baerten27-Jun-07 2:44 
AnswerRe: LVN_BEGINDRAG Pin
KarstenK27-Jun-07 2:50
mveKarstenK27-Jun-07 2:50 
GeneralRe: LVN_BEGINDRAG Pin
baerten27-Jun-07 3:49
baerten27-Jun-07 3:49 
GeneralRe: LVN_BEGINDRAG Pin
KarstenK27-Jun-07 4:26
mveKarstenK27-Jun-07 4:26 
GeneralRe: LVN_BEGINDRAG Pin
baerten27-Jun-07 4:40
baerten27-Jun-07 4:40 
QuestionCTreeCtrl and trapping on message after checkbox is marked Pin
JDCSI9927-Jun-07 1:49
JDCSI9927-Jun-07 1:49 
AnswerRe: CTreeCtrl and trapping on message after checkbox is marked Pin
Iain Clarke, Warrior Programmer27-Jun-07 3:12
Iain Clarke, Warrior Programmer27-Jun-07 3:12 
AnswerRe: CTreeCtrl and trapping on message after checkbox is marked Pin
Iain Clarke, Warrior Programmer27-Jun-07 3:38
Iain Clarke, Warrior Programmer27-Jun-07 3:38 
GeneralRe: CTreeCtrl and trapping on message after checkbox is marked Pin
JDCSI9927-Jun-07 4:38
JDCSI9927-Jun-07 4:38 
QuestionHelp needed to solve images problem Pin
James_Programmer27-Jun-07 1:42
James_Programmer27-Jun-07 1:42 
AnswerRe: Help needed to solve images problem Pin
KarstenK27-Jun-07 1:59
mveKarstenK27-Jun-07 1:59 
GeneralRe: Help needed to solve images problem Pin
James_Programmer27-Jun-07 2:14
James_Programmer27-Jun-07 2:14 
GeneralRe: Help needed to solve images problem Pin
KarstenK27-Jun-07 2:45
mveKarstenK27-Jun-07 2:45 
GeneralRe: Help needed to solve images problem Pin
James_Programmer27-Jun-07 20:24
James_Programmer27-Jun-07 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.