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

C / C++ / MFC

 
GeneralRe: Nish {BusterBoy] Deleting strings Pin
Nish Nishant21-Mar-02 9:39
sitebuilderNish Nishant21-Mar-02 9:39 
Generaldeleteing a string Pin
21-Mar-02 8:25
suss21-Mar-02 8:25 
GeneralRe: deleteing a string Pin
Tomasz Sowinski21-Mar-02 8:29
Tomasz Sowinski21-Mar-02 8:29 
GeneralRe: deleteing a string Pin
21-Mar-02 8:32
suss21-Mar-02 8:32 
GeneralRe: deleteing a string Pin
Tomasz Sowinski21-Mar-02 8:44
Tomasz Sowinski21-Mar-02 8:44 
GeneralRe: deleteing a string Pin
Nish Nishant21-Mar-02 8:49
sitebuilderNish Nishant21-Mar-02 8:49 
GeneralRe: deleteing a string Pin
Nish Nishant21-Mar-02 8:30
sitebuilderNish Nishant21-Mar-02 8:30 
GeneralDebugging CreateThread Pin
21-Mar-02 7:51
suss21-Mar-02 7:51 
I am learning multithreading for the first time. I tried to create a thread using CreateThread() in MS Visual C++:

sThread = CreateThread(NULL, 0, StreamHandler, NULL, 0, &sThreadID);

Tracing through debugger, the thread seems to be created because I receive a handle.

I placed a cout statement at the beginning of my StreamHandler function, but it was not printed. So it seems as if the thread was created, but did not execute my function.

Does anyone know how I can jump into my function to see if the thread is running?

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 
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 

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.