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

C / C++ / MFC

 
QuestionStatic Analysis code reqired for C++ Pin
GauranG Shah20-Nov-13 0:59
GauranG Shah20-Nov-13 0:59 
AnswerRe: Static Analysis code reqired for C++ Pin
Chris Losinger20-Nov-13 1:43
professionalChris Losinger20-Nov-13 1:43 
GeneralRe: Static Analysis code reqired for C++ Pin
GauranG Shah20-Nov-13 4:45
GauranG Shah20-Nov-13 4:45 
AnswerRe: Static Analysis code reqired for C++ Pin
Marco Bertschi20-Nov-13 10:13
protectorMarco Bertschi20-Nov-13 10:13 
AnswerRe: Static Analysis code reqired for C++ Pin
Joe Woodbury22-Nov-13 5:37
professionalJoe Woodbury22-Nov-13 5:37 
GeneralRe: Static Analysis code reqired for C++ Pin
Stefan_Lang26-Nov-13 22:51
Stefan_Lang26-Nov-13 22:51 
GeneralRe: Static Analysis code reqired for C++ Pin
Joe Woodbury27-Nov-13 4:19
professionalJoe Woodbury27-Nov-13 4:19 
QuestionCancelWaitableTimer bug when used with socket? Pin
ehaerim17-Nov-13 15:13
ehaerim17-Nov-13 15:13 
In normal situations, the following code stops timer as expected:

CreateWaitableTimer...
SetWaitabltTimer... // with duration 0 and period USER_TIMER_MINIMUM
CancelWaitableTimer...

Here, I mean 'normal' as 'not using socket calls'.

However, when the two conditions are met, CancelWaitableTimer does not stop timer. I've tried to find out why, in vain. The two conditions are:
- CSocket::Connect or CAsyncSocket::Connect was called
- the last SetWaitableTimer was called with Duration 0 and period USER_TIMER_MINUMUM
Actually USER_TIMER_MINUMUM is only to repeat the issue everytime in 100%.
If period is long enough, this issue happens irregularly.

That is, the following code fails to stop the timer.

CreateWaitableTimer...
SetWaitabltTimer... // with duration 0 and period USER_TIMER_MINIMUM
CSocket::Connect... // use Connect from CSocket or CAsyncSocket
CancelWaitableTimer...

Since it is too hard to post a complete source code here,
I would email the zipped project file if you send me an email to 'ehaerim at gmail dot com'.

thx
HaeRim Lee

modified 17-Nov-13 21:40pm.

AnswerRe: CancelWaitableTimer bug when used with socket? Pin
Orjan Westin19-Nov-13 5:28
professionalOrjan Westin19-Nov-13 5:28 
GeneralRe: CancelWaitableTimer bug when used with socket? Pin
ehaerim19-Nov-13 18:19
ehaerim19-Nov-13 18:19 
AnswerRe: CancelWaitableTimer bug when used with socket? Pin
Randor 20-Nov-13 7:29
professional Randor 20-Nov-13 7:29 
GeneralRe: CancelWaitableTimer bug when used with socket? Pin
ehaerim20-Nov-13 9:46
ehaerim20-Nov-13 9:46 
GeneralRe: CancelWaitableTimer bug when used with socket? Pin
Randor 20-Nov-13 10:55
professional Randor 20-Nov-13 10:55 
GeneralRe: CancelWaitableTimer bug when used with socket? Pin
ehaerim20-Nov-13 11:36
ehaerim20-Nov-13 11:36 
QuestionIs it possible to enumerate symbols in a PDB file using DBGHELP.LIB - NO Process Loaded. Pin
Blake Miller15-Nov-13 13:02
Blake Miller15-Nov-13 13:02 
AnswerRe: Is it possible to enumerate symbols in a PDB file using DBGHELP.LIB - NO Process Loaded. Pin
Randor 18-Nov-13 5:54
professional Randor 18-Nov-13 5:54 
QuestionCatch ENTER key on CBitmapButton Pin
_Flaviu15-Nov-13 2:38
_Flaviu15-Nov-13 2:38 
QuestionRe: Catch ENTER key on CBitmapButton Pin
Richard MacCutchan15-Nov-13 3:01
mveRichard MacCutchan15-Nov-13 3:01 
AnswerRe: Catch ENTER key on CBitmapButton Pin
_Flaviu15-Nov-13 3:02
_Flaviu15-Nov-13 3:02 
AnswerRe: Catch ENTER key on CBitmapButton Pin
_Flaviu17-Nov-13 21:33
_Flaviu17-Nov-13 21:33 
GeneralRe: Catch ENTER key on CBitmapButton Pin
Richard MacCutchan17-Nov-13 22:01
mveRichard MacCutchan17-Nov-13 22:01 
GeneralRe: Catch ENTER key on CBitmapButton Pin
_Flaviu17-Nov-13 22:06
_Flaviu17-Nov-13 22:06 
QuestionSendMessage for WM_GETTEXT not working in case of unicode data. Pin
Le@rner15-Nov-13 0:50
Le@rner15-Nov-13 0:50 
QuestionRe: SendMessage for WM_GETTEXT not working in case of unicode data. Pin
Richard MacCutchan15-Nov-13 2:54
mveRichard MacCutchan15-Nov-13 2:54 
AnswerRe: SendMessage for WM_GETTEXT not working in case of unicode data. Pin
Le@rner15-Nov-13 17:12
Le@rner15-Nov-13 17:12 

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.