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

C / C++ / MFC

 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan18-Apr-07 0:32
professionalkakan18-Apr-07 0:32 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 18-Apr-07 1:01
amitmistry_petlad 18-Apr-07 1:01 
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 
Thanks Guys.

I have used native API semaphores for this purpose before but I didnt know if there was something 'odd' about the CSemaphore class because the MFC documentation says it "allows a limited number of threads in one or more processes to access a resource". I was just making 100% sure that it worked the same as the native Windows semaphore. Clutching at straws really, the code isnt mine and I was told it didn't work. I have tried it in isolation and it appears to work fine so I suspect that it only falls over when integrated into the rest of the code. There are, as you suggest, unprocessed items building up on the queue but the max count for the CSemaphore is 200000 so I would not expect this limit to be reached as the queue is much smaller than this an we cannot get more than 18000 items at once in any case.

Thanks for the info though, it helped me to avoid the 'red herrings'

Tony Big Grin | :-D
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 
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 

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.