Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Job Interview Question: How can I play a movie using Visual Studio Pin
rjkg15-Apr-08 23:05
rjkg15-Apr-08 23:05 
GeneralRe: Job Interview Question: How can I play a movie using Visual Studio Pin
Hamid_RT16-Apr-08 0:36
Hamid_RT16-Apr-08 0:36 
Questiondll problem Pin
trioum15-Apr-08 19:12
trioum15-Apr-08 19:12 
GeneralRe: dll problem Pin
Hamid_RT15-Apr-08 19:45
Hamid_RT15-Apr-08 19:45 
GeneralRe: dll problem Pin
trioum15-Apr-08 19:55
trioum15-Apr-08 19:55 
GeneralRe: dll problem Pin
Stephen Hewitt15-Apr-08 20:17
Stephen Hewitt15-Apr-08 20:17 
GeneralRe: dll problem Pin
GDavy15-Apr-08 21:03
GDavy15-Apr-08 21:03 
GeneralWaitForSingleObject problem [modified] Pin
followait15-Apr-08 19:07
followait15-Apr-08 19:07 
There is a wnd with a list ctrl.
And I create a thread (referenced by h) to fill the list ctrl.
And I wrote this:
CMyWnd::OnDestroy()
{
  CWnd::OnDestroy();
  WaitForSingleObject(h,INFINITE);        //blocked here if the list ctrl 
                                          //filling thread is not completed yet.
}


I think CListCtrl uses its owner message loop to do InsertItem, so there should be no problem to block the main wnd's msg loop. Why does it block here?

modified on Wednesday, April 16, 2008 1:56 AM

GeneralRe: WaitForSingleObject problem Pin
Stephen Hewitt15-Apr-08 19:16
Stephen Hewitt15-Apr-08 19:16 
GeneralRe: WaitForSingleObject problem Pin
Rajkumar R15-Apr-08 19:36
Rajkumar R15-Apr-08 19:36 
GeneralRe: WaitForSingleObject problem Pin
followait15-Apr-08 19:56
followait15-Apr-08 19:56 
GeneralRe: WaitForSingleObject problem Pin
followait15-Apr-08 20:14
followait15-Apr-08 20:14 
GeneralRe: WaitForSingleObject problem Pin
Rajkumar R15-Apr-08 20:24
Rajkumar R15-Apr-08 20:24 
GeneralRe: WaitForSingleObject problem Pin
followait15-Apr-08 20:33
followait15-Apr-08 20:33 
GeneralRe: WaitForSingleObject problem Pin
Rajkumar R15-Apr-08 20:35
Rajkumar R15-Apr-08 20:35 
GeneralRe: WaitForSingleObject problem Pin
followait15-Apr-08 20:40
followait15-Apr-08 20:40 
GeneralRe: WaitForSingleObject problem Pin
Rajkumar R15-Apr-08 20:53
Rajkumar R15-Apr-08 20:53 
GeneralRe: WaitForSingleObject problem Pin
followait15-Apr-08 21:10
followait15-Apr-08 21:10 
Questionhow to find out admin privelege Pin
Jiju_b15-Apr-08 18:48
Jiju_b15-Apr-08 18:48 
AnswerRe: how to find out admin privelege Pin
Rajkumar R15-Apr-08 19:04
Rajkumar R15-Apr-08 19:04 
AnswerRe: how to find out admin privelege Pin
Hamid_RT15-Apr-08 19:48
Hamid_RT15-Apr-08 19:48 
Questionsocket proramming in C on Visual Studio Pin
ADTC#15-Apr-08 18:47
ADTC#15-Apr-08 18:47 
GeneralRe: socket proramming in C on Visual Studio Pin
Moak16-Apr-08 0:14
Moak16-Apr-08 0:14 
GeneralRe: socket proramming in C on Visual Studio Pin
JudyL_MD16-Apr-08 1:54
JudyL_MD16-Apr-08 1:54 
QuestionRe: socket proramming in C on Visual Studio Pin
ADTC#16-Apr-08 17:56
ADTC#16-Apr-08 17:56 

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.