Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDebugging CreateThread Pin
21-Mar-02 7:51
suss21-Mar-02 7:51 
GeneralRe: Debugging CreateThread Pin
Tomasz Sowinski21-Mar-02 7:56
Tomasz Sowinski21-Mar-02 7:56 
GeneralRe: Debugging CreateThread Pin
Le centriste21-Mar-02 8:09
Le centriste21-Mar-02 8:09 
GeneralRe: Debugging CreateThread Pin
21-Mar-02 9:28
suss21-Mar-02 9:28 
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 9:43
Tim Smith21-Mar-02 9:43 
GeneralRe: Debugging CreateThread Pin
21-Mar-02 9:56
suss21-Mar-02 9:56 
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 10:12
Tim Smith21-Mar-02 10:12 
GeneralRe: Debugging CreateThread Pin
21-Mar-02 10:20
suss21-Mar-02 10:20 
This is my code:

DWORD WINAPI StreamHandler(LPVOID lpParam)
{
//Thread function code
printf("I am in the thread\n");
}

//Create TCP/IP Thread
sThread = CreateThread(NULL,0,StreamHandler,NULL,0,&sThreadID);
if (sThread == NULL)
cout << "Create Stream Thread Failed\n";
else
CloseHandle(sThread);

It's pretty simple, I don't know why it doesn't execute.
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 10:28
Tim Smith21-Mar-02 10:28 
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 10:29
Tim Smith21-Mar-02 10:29 
GeneralRe: Debugging CreateThread Pin
Nemanja Trifunovic21-Mar-02 10:31
Nemanja Trifunovic21-Mar-02 10:31 
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 10:36
Tim Smith21-Mar-02 10:36 
GeneralRe: Debugging CreateThread Pin
Nemanja Trifunovic21-Mar-02 10:42
Nemanja Trifunovic21-Mar-02 10:42 
GeneralRe: Debugging CreateThread Pin
Tim Smith21-Mar-02 13:22
Tim Smith21-Mar-02 13:22 
GeneralRe: Debugging CreateThread Pin
22-Mar-02 3:43
suss22-Mar-02 3:43 
GeneralRe: Debugging CreateThread Pin
21-Mar-02 9:57
suss21-Mar-02 9:57 
GeneralRe: Debugging CreateThread Pin
Le centriste21-Mar-02 10:02
Le centriste21-Mar-02 10:02 
GeneralRe: Debugging CreateThread Pin
Nemanja Trifunovic21-Mar-02 10:11
Nemanja Trifunovic21-Mar-02 10:11 
GeneralRe: Debugging CreateThread Pin
Le centriste21-Mar-02 10:08
Le centriste21-Mar-02 10:08 
GeneralOwner Draw Pin
NC21-Mar-02 7:49
NC21-Mar-02 7:49 
GeneralRe: Owner Draw Pin
Tomasz Sowinski21-Mar-02 7:53
Tomasz Sowinski21-Mar-02 7:53 
GeneralRe: Owner Draw Pin
NC21-Mar-02 8:18
NC21-Mar-02 8:18 
GeneralRe: Owner Draw Pin
Tomasz Sowinski21-Mar-02 8:26
Tomasz Sowinski21-Mar-02 8:26 
GeneralRe: Owner Draw Pin
21-Mar-02 8:39
suss21-Mar-02 8:39 
GeneralRe: Owner Draw Pin
Tomasz Sowinski21-Mar-02 8:43
Tomasz Sowinski21-Mar-02 8:43 

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.