Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange message during serialization. please help! Pin
Mark Salsbery11-May-07 9:55
Mark Salsbery11-May-07 9:55 
GeneralRe: Strange message during serialization. please help! Pin
Arris7411-May-07 10:59
Arris7411-May-07 10:59 
QuestionRe: Strange message during serialization. please help! Pin
Mark Salsbery11-May-07 11:14
Mark Salsbery11-May-07 11:14 
AnswerRe: Strange message during serialization. please help! Pin
Arris7411-May-07 11:54
Arris7411-May-07 11:54 
GeneralRe: Strange message during serialization. please help! Pin
Mark Salsbery11-May-07 12:19
Mark Salsbery11-May-07 12:19 
QuestionNo Windows xp visual styles in VC++ 2003 Pin
johnny__XP11-May-07 6:06
johnny__XP11-May-07 6:06 
AnswerRe: No Windows xp visual styles in VC++ 2003 Pin
Mark Salsbery11-May-07 6:22
Mark Salsbery11-May-07 6:22 
QuestionBreaking out of a blocking function...[Threads] Pin
Eytukan11-May-07 5:23
Eytukan11-May-07 5:23 
UINT ThreadProc(LPVOID lp)
{
 
  while(bKeepRunning)
  {
        BlockToDeathLibFunction();//Break this!!     
  
  }

}


Imagine the above situation, where BlockToDeathLibFunction is a function inside an external library(meaning to say it's out of our control) blocks the control. Here we want to get out of the thread and set the bKeepRunning to false,. Now if only the blocking call gets released, the thread will get closed. But here it's out of our control. How do we handle this? Should use TerminateThread or something like that? Which is the best way?



Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.

AnswerRe: Breaking out of a blocking function...[Threads] Pin
CPallini11-May-07 5:34
mveCPallini11-May-07 5:34 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Eytukan11-May-07 5:39
Eytukan11-May-07 5:39 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini11-May-07 9:28
mveCPallini11-May-07 9:28 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Roger Stoltz11-May-07 9:43
Roger Stoltz11-May-07 9:43 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Eytukan11-May-07 23:14
Eytukan11-May-07 23:14 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Stephen Hewitt11-May-07 21:29
Stephen Hewitt11-May-07 21:29 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini12-May-07 1:08
mveCPallini12-May-07 1:08 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Daniel Grunwald13-May-07 2:59
Daniel Grunwald13-May-07 2:59 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini13-May-07 10:38
mveCPallini13-May-07 10:38 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Stephen Hewitt13-May-07 14:04
Stephen Hewitt13-May-07 14:04 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini13-May-07 21:15
mveCPallini13-May-07 21:15 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Stephen Hewitt13-May-07 14:01
Stephen Hewitt13-May-07 14:01 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini13-May-07 21:05
mveCPallini13-May-07 21:05 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Stephen Hewitt13-May-07 21:23
Stephen Hewitt13-May-07 21:23 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini13-May-07 21:35
mveCPallini13-May-07 21:35 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
Stephen Hewitt13-May-07 21:37
Stephen Hewitt13-May-07 21:37 
GeneralRe: Breaking out of a blocking function...[Threads] Pin
CPallini13-May-07 21:55
mveCPallini13-May-07 21:55 

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.