I set breakpoint in the thread FuncB, but can't step into it although it's executed actually.
int FuncB(void);
DWORD WINAPI Thread_Loop(LPVOID lpParam);
void FuncA(void)
{
....
CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)Thread_Loop,0,0,&ThreadSSID);
MessagePopup ("Stop here", "Shall I continue?");
}
// ====== Thread of Loop ======
DWORD WINAPI Thread_Loop(LPVOID lpParam)
{
int i=0;
do{
FuncB();
ProcessSystemEvents();
i++;
}while(i<15);
return 1;
}
What's more, it will crash in do-while loop.
Am I wrong somewhere?
Any help be appreciated.