Click here to Skip to main content
15,902,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: communicate between 2 different applications using CORBA Pin
sola7720-Aug-09 2:21
sola7720-Aug-09 2:21 
GeneralRe: communicate between 2 different applications using CORBA Pin
Cedric Moonen20-Aug-09 2:26
Cedric Moonen20-Aug-09 2:26 
GeneralRe: communicate between 2 different applications using CORBA Pin
sola7720-Aug-09 2:33
sola7720-Aug-09 2:33 
GeneralRe: communicate between 2 different applications using CORBA Pin
Garth J Lancaster20-Aug-09 12:12
professionalGarth J Lancaster20-Aug-09 12:12 
AnswerRe: communicate between 2 different applications using CORBA Pin
Nemanja Trifunovic20-Aug-09 4:50
Nemanja Trifunovic20-Aug-09 4:50 
AnswerRe: communicate between 2 different applications using CORBA Pin
Joe Woodbury20-Aug-09 6:05
professionalJoe Woodbury20-Aug-09 6:05 
JokeRe: communicate between 2 different applications using CORBA - Sounds risky to me... Pin
Iain Clarke, Warrior Programmer21-Aug-09 2:46
Iain Clarke, Warrior Programmer21-Aug-09 2:46 
QuestionAfter TerminateThread function is called no lines after that is being called. Pin
Le@rner19-Aug-09 23:28
Le@rner19-Aug-09 23:28 
Hi all,

i have made a worker thread and from that worker thread i am calling function to do some processing.

i have started my worker thread using this code
pThread = AfxBeginThread(Thread , (LPVOID) this);


I am terminating that thread on click event of a button, using this code
int ret = ::TerminateThread(pThread->m_hThread,NULL);



My problem is when TerminateThread line is being executed pointer never returns back i can't get its return value and lines after that piece of code is not being executed.

How to resolve this problem??

Thanks in advance...

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen19-Aug-09 23:31
Cedric Moonen19-Aug-09 23:31 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini19-Aug-09 23:38
mveCPallini19-Aug-09 23:38 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S19-Aug-09 23:43
Nishad S19-Aug-09 23:43 
QuestionRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini19-Aug-09 23:58
mveCPallini19-Aug-09 23:58 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:02
Nishad S20-Aug-09 0:02 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:09
mveCPallini20-Aug-09 0:09 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:12
Nishad S20-Aug-09 0:12 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:18
mveCPallini20-Aug-09 0:18 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 0:22
Nishad S20-Aug-09 0:22 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
CPallini20-Aug-09 0:32
mveCPallini20-Aug-09 0:32 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 18:56
Nishad S20-Aug-09 18:56 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen20-Aug-09 0:47
Cedric Moonen20-Aug-09 0:47 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 1:14
Nishad S20-Aug-09 1:14 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Cedric Moonen20-Aug-09 1:23
Cedric Moonen20-Aug-09 1:23 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 1:45
Nishad S20-Aug-09 1:45 
GeneralRe: After TerminateThread function is called no lines after that is being called. Pin
Nishad S20-Aug-09 18:54
Nishad S20-Aug-09 18:54 
AnswerRe: After TerminateThread function is called no lines after that is being called. Pin
Rajesh R Subramanian20-Aug-09 1:47
professionalRajesh R Subramanian20-Aug-09 1:47 

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.