Click here to Skip to main content
15,886,077 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
followait wrote:
WaitForSingleObject(h,INFINITE);


Assuming h is the handle to the thread that is filling the List items.


followait wrote:
I think CListCtrl uses its owner message loop to do InsertItem

The message loop is in the same thread where the OnDestroy Message is queue as the list control is created in that thread.


followait wrote:
Why does it block here?

It is actually a deadlock as InsertItem sends the message to the List View control and waiting for the message to be processed while the message loop which processes the WM_DESTROY message from the same message queue waiting for the thread that send the message.
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 
AnswerRe: socket proramming in C on Visual Studio Pin
Moak26-May-08 8:10
Moak26-May-08 8:10 
GeneralResource File :Static Library Pin
lavate malllik15-Apr-08 18:40
lavate malllik15-Apr-08 18:40 

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.