Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan18-Apr-07 1:15
professionalkakan18-Apr-07 1:15 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 18-Apr-07 1:21
amitmistry_petlad 18-Apr-07 1:21 
QuestionCSemaphore Question Pin
softwaremonkey17-Apr-07 20:57
softwaremonkey17-Apr-07 20:57 
AnswerRe: CSemaphore Question Pin
Roger Stoltz17-Apr-07 21:30
Roger Stoltz17-Apr-07 21:30 
AnswerRe: CSemaphore Question Pin
Mark Salsbery18-Apr-07 6:58
Mark Salsbery18-Apr-07 6:58 
GeneralRe: CSemaphore Question Pin
softwaremonkey18-Apr-07 7:58
softwaremonkey18-Apr-07 7:58 
GeneralRe: CSemaphore Question Pin
Roger Stoltz18-Apr-07 9:02
Roger Stoltz18-Apr-07 9:02 
GeneralRe: CSemaphore Question Pin
softwaremonkey18-Apr-07 12:52
softwaremonkey18-Apr-07 12:52 
Hi Roger,

Thanks for the reply. At this point, when I test the code it works fine, but the guys who did the field testing have reported that if more than one message is queued within a short period of time, only one of them gets processed, leaving messages on the queue. I am unable to replicate this here, it all works fine. The worker thread is set to THREAD_PRIORITY_BELOW_NORMAL. There are only two threads involved, one which adds messages to the queue which then calls CSemaphore::Unlock(). Meanwhile, the worker thread is blocked with CSemaphore::Lock() and so it bursts into action to remove and process the message(s) as they are added. I believe that the code is OK and that there is something different about the way it is being used in the field. Until I see it for myself, I cant really say what is going wrong. Sniff | :^)

Cheers,

Tony
GeneralRe: CSemaphore Question Pin
Roger Stoltz18-Apr-07 23:00
Roger Stoltz18-Apr-07 23:00 
QuestionCopying HTML page along with the images from it. [modified] Pin
Sameer_Thakur17-Apr-07 20:46
Sameer_Thakur17-Apr-07 20:46 
AnswerRe: Copying HTML page along with the images from it. Pin
Hamid_RT17-Apr-07 21:38
Hamid_RT17-Apr-07 21:38 
QuestionRetreiving content from textbox???? Pin
ashokbngr17-Apr-07 20:26
ashokbngr17-Apr-07 20:26 
AnswerRe: Retreiving content from textbox???? Pin
Programm3r17-Apr-07 20:31
Programm3r17-Apr-07 20:31 
AnswerRe: Retreiving content from textbox???? Pin
Hamid_RT17-Apr-07 21:15
Hamid_RT17-Apr-07 21:15 
QuestionSuppressing the "Missing Picture Dialog - Warning Message " Pin
sivakarthick17-Apr-07 20:23
sivakarthick17-Apr-07 20:23 
QuestionWindows Socket Link error Pin
Syamlal S Nair17-Apr-07 20:16
Syamlal S Nair17-Apr-07 20:16 
AnswerRe: Windows Socket Link error Pin
Programm3r17-Apr-07 20:20
Programm3r17-Apr-07 20:20 
GeneralRe: Windows Socket Link error Pin
Syamlal S Nair17-Apr-07 20:26
Syamlal S Nair17-Apr-07 20:26 
GeneralRe: Windows Socket Link error Pin
Programm3r17-Apr-07 20:30
Programm3r17-Apr-07 20:30 
AnswerRe: Windows Socket Link error Pin
Paresh Chitte17-Apr-07 20:20
Paresh Chitte17-Apr-07 20:20 
AnswerRe: Windows Socket Link error Pin
prasad_som17-Apr-07 20:21
prasad_som17-Apr-07 20:21 
QuestionWin32 GUI Components Pin
Programm3r17-Apr-07 20:15
Programm3r17-Apr-07 20:15 
AnswerRe: Win32 GUI Components Pin
Michael Dunn18-Apr-07 5:45
sitebuilderMichael Dunn18-Apr-07 5:45 
QuestionLinked List Pin
Cmania17-Apr-07 19:45
Cmania17-Apr-07 19:45 
AnswerRe: Linked List Pin
Michael Dunn18-Apr-07 5:48
sitebuilderMichael Dunn18-Apr-07 5:48 

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.