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

C / C++ / MFC

 
AnswerRe: volatile local variable Pin
David Knechtges6-Nov-13 3:37
David Knechtges6-Nov-13 3:37 
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:19
econy6-Nov-13 4:19 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 4:23
pasztorpisti6-Nov-13 4:23 
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:44
econy6-Nov-13 4:44 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:15
pasztorpisti6-Nov-13 5:15 
GeneralRe: volatile local variable Pin
econy6-Nov-13 5:36
econy6-Nov-13 5:36 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:39
pasztorpisti6-Nov-13 5:39 
GeneralRe: volatile local variable Pin
Aescleal6-Nov-13 4:49
Aescleal6-Nov-13 4:49 
It's not necessarily bad design to pass a reference to a local variable to another thread for processing. One example of where it might come in handy is splitting up an array into chunks and processing each chunk in separate threads. However using volatile as a synchronisation mechanism is not the sort of thing I'd recommend to try and avoid a proper synchronisation mechanism (i.e. a condition variable).
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:09
pasztorpisti6-Nov-13 5:09 
AnswerRe: volatile local variable Pin
jschell6-Nov-13 8:03
jschell6-Nov-13 8:03 
Question_com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:14
Mike Grove5-Nov-13 22:14 
SuggestionRe: _com_error not caught by 'Try-Catch' code Pin
Richard MacCutchan5-Nov-13 22:26
mveRichard MacCutchan5-Nov-13 22:26 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:53
Mike Grove5-Nov-13 22:53 
AnswerRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 22:36
Aescleal5-Nov-13 22:36 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:57
Mike Grove5-Nov-13 22:57 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 23:38
Aescleal5-Nov-13 23:38 
Questionmfc Pin
shizhanbiao5-Nov-13 19:59
shizhanbiao5-Nov-13 19:59 
AnswerRe: mfc Pin
CPallini5-Nov-13 21:32
mveCPallini5-Nov-13 21:32 
QuestionRe: mfc Pin
David Crow6-Nov-13 4:13
David Crow6-Nov-13 4:13 
QuestionGetting output parameters value[Solved] Pin
pkfox4-Nov-13 4:04
professionalpkfox4-Nov-13 4:04 
SuggestionRe: Gettin output parameters value Pin
Richard MacCutchan4-Nov-13 6:10
mveRichard MacCutchan4-Nov-13 6:10 
GeneralRe: Gettin output parameters value Pin
pkfox4-Nov-13 10:07
professionalpkfox4-Nov-13 10:07 
SuggestionRe: Gettin output parameters value Pin
David Crow4-Nov-13 10:44
David Crow4-Nov-13 10:44 
GeneralRe: Gettin output parameters value Pin
Richard MacCutchan4-Nov-13 22:29
mveRichard MacCutchan4-Nov-13 22:29 
GeneralRe: Gettin output parameters value Pin
Richard MacCutchan4-Nov-13 22:31
mveRichard MacCutchan4-Nov-13 22:31 

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.