Click to See Complete Forum and Search --> : thread problem


rony123
July 19th, 2007, 11:25 PM
Hi guys!

i have a problem in creating thread.....

Can we create a thread within a thread......

if yes then how...?





thanks in advace....
bye

dingo_kasper
July 20th, 2007, 08:49 AM
hi
if you can create the one thread the what is the problem of creating the second thread in the thread fucntion of first thread.
but why do you need this
regards
Dingo

rony123
July 21st, 2007, 01:26 AM
Hi kasper!

when i am creating another thread within a thread then it is showing error..thats why i asked u to the syntax of creating a thread within a thread..


bye.

exterminator
July 21st, 2007, 02:25 AM
What error? Show code.

JamesSchumacher
July 21st, 2007, 05:11 PM
Are you using the CRT function _beginthread?

If so, try using _beginthreadex instead.

NMTop40
July 22nd, 2007, 08:22 AM
Probably a Microsoft "gotcha".