Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
User 665818-Aug-02 4:11
User 665818-Aug-02 4:11 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
Chris Losinger18-Aug-02 17:34
professionalChris Losinger18-Aug-02 17:34 
GeneralRe: Debug Assertion in Debug DLL (not Release) Pin
Mustafa Demirhan19-Aug-02 13:51
Mustafa Demirhan19-Aug-02 13:51 
GeneralProblem with monitoring threads !!! Pin
tongc18-Aug-02 3:41
tongc18-Aug-02 3:41 
GeneralRe: Problem with monitoring threads !!! Pin
valikac18-Aug-02 9:41
valikac18-Aug-02 9:41 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann18-Aug-02 10:34
Daniel Lohmann18-Aug-02 10:34 
GeneralRe: Problem with monitoring threads !!! Pin
tongc18-Aug-02 16:41
tongc18-Aug-02 16:41 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann19-Aug-02 1:12
Daniel Lohmann19-Aug-02 1:12 
tcuong wrote:
Do you notice any bugs or logical error??

No, the code looks fine. I assume it is a timing problem: As I wrote the timing precision on NT is about 10 msec. If your Sleep( 5000 ) actually returns after 4990 msec and maybe the WaitForMultipleObjects(..., 1000) returns after 1010 msec it may well happen you "loose" one active messsage of the thread.

To verify this you could modify the timings by small amounts. I'd also recommend to add printfs before and after the Sleep() statement and monitor the output sequence.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: Problem with monitoring threads !!! Pin
tongc20-Aug-02 5:19
tongc20-Aug-02 5:19 
GeneralRe: Problem with monitoring threads !!! Pin
Daniel Lohmann20-Aug-02 8:32
Daniel Lohmann20-Aug-02 8:32 
GeneralRe: Problem with monitoring threads !!! Pin
Mustafa Demirhan19-Aug-02 13:56
Mustafa Demirhan19-Aug-02 13:56 
GeneralHot/mouseover Pin
DanYELL18-Aug-02 3:33
DanYELL18-Aug-02 3:33 
Questionexcepting a flag???? Pin
Eric Cashwell18-Aug-02 2:39
Eric Cashwell18-Aug-02 2:39 
AnswerRe: excepting a flag???? Pin
tongc18-Aug-02 3:09
tongc18-Aug-02 3:09 
GeneralRe: excepting a flag???? Pin
Eric Cashwell18-Aug-02 3:15
Eric Cashwell18-Aug-02 3:15 
GeneralRe: excepting a flag???? Pin
Eric Cashwell18-Aug-02 4:25
Eric Cashwell18-Aug-02 4:25 
GeneralEasy question (hopefully) Pin
Jh318-Aug-02 2:17
Jh318-Aug-02 2:17 
GeneralRe: Easy question (hopefully) Pin
Stephane Rodriguez.18-Aug-02 2:26
Stephane Rodriguez.18-Aug-02 2:26 
GeneralRe: Easy question (hopefully) Pin
tongc18-Aug-02 3:44
tongc18-Aug-02 3:44 
GeneralAppendChunk question - simple probably Pin
nss17-Aug-02 23:28
nss17-Aug-02 23:28 
GeneralRe: AppendChunk question - simple probably Pin
Joel Lucsy19-Aug-02 3:49
Joel Lucsy19-Aug-02 3:49 
GeneralHelp button and propertysheet Pin
Mazdak17-Aug-02 21:37
Mazdak17-Aug-02 21:37 
GeneralRe: Help button and propertysheet Pin
Shog917-Aug-02 22:24
sitebuilderShog917-Aug-02 22:24 
GeneralRe: Help button and propertysheet Pin
Mazdak18-Aug-02 3:49
Mazdak18-Aug-02 3:49 
GeneralOpenML Pin
Kiddxin17-Aug-02 18:48
Kiddxin17-Aug-02 18: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.