Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General_variant_t question ... Pin
Hadi Rezaee19-Oct-01 12:58
Hadi Rezaee19-Oct-01 12:58 
GeneralRe: _variant_t question ... Pin
Christian Graus19-Oct-01 14:58
protectorChristian Graus19-Oct-01 14:58 
GeneralRe: _variant_t question ... Pin
Hadi Rezaee20-Oct-01 12:42
Hadi Rezaee20-Oct-01 12:42 
GeneralRe: _variant_t question ... Pin
Christian Graus20-Oct-01 13:04
protectorChristian Graus20-Oct-01 13:04 
GeneralRe: _variant_t question ... Pin
Michael Dunn19-Oct-01 16:05
sitebuilderMichael Dunn19-Oct-01 16:05 
GeneralRe: _variant_t question ... Pin
Hadi Rezaee20-Oct-01 12:44
Hadi Rezaee20-Oct-01 12:44 
GeneralRe: _variant_t question ... Pin
Michael Dunn20-Oct-01 15:59
sitebuilderMichael Dunn20-Oct-01 15:59 
Generalthrow and catch Pin
Joe Moldovan19-Oct-01 11:45
Joe Moldovan19-Oct-01 11:45 
Does anyone know how to throw an exception across threads?

Is this possible at all given the stack unwinding issues? Is there perhaps some other mechanism for interrupting the logic of one thread from another without Waits or SleepEx or other sync functions. Callbacks - from timers etc. - are in the calling thread so they are no good to me.

I need to protect a block of code as follows,

Start timer
-------------
Code Block
normal exit
-------------
Timeout
timeout exit

The try/catch block is ideal but the timers run in their own threads so I don't catch nothing.

Thanks to all!


GeneralRe: throw and catch Pin
Andrew Peace19-Oct-01 13:31
Andrew Peace19-Oct-01 13:31 
GeneralRe: throw and catch Pin
Joe Moldovan20-Oct-01 17:52
Joe Moldovan20-Oct-01 17:52 
GeneralRe: throw and catch Pin
Andrew Peace21-Oct-01 11:14
Andrew Peace21-Oct-01 11:14 
QuestionAutomating the build process? Pin
Jamie Hale19-Oct-01 9:30
Jamie Hale19-Oct-01 9:30 
AnswerRe: Automating the build process? Pin
Carlos Antollini19-Oct-01 9:36
Carlos Antollini19-Oct-01 9:36 
GeneralRe: Automating the build process? Pin
Jamie Hale19-Oct-01 9:37
Jamie Hale19-Oct-01 9:37 
GeneralRe: Automating the build process? Pin
J Patel19-Oct-01 9:43
J Patel19-Oct-01 9:43 
GeneralRe: Automating the build process? Pin
Carlos Antollini19-Oct-01 9:53
Carlos Antollini19-Oct-01 9:53 
GeneralRe: Automating the build process? Pin
Jamie Hale19-Oct-01 10:10
Jamie Hale19-Oct-01 10:10 
GeneralRe: Automating the build process? Pin
Fazlul Kabir19-Oct-01 10:16
Fazlul Kabir19-Oct-01 10:16 
GeneralRe: Automating the build process? Pin
Jamie Hale19-Oct-01 10:57
Jamie Hale19-Oct-01 10:57 
AnswerRe: Automating the build process? Pin
Tim Deveaux19-Oct-01 10:15
Tim Deveaux19-Oct-01 10:15 
AnswerRe: Automating the build process? Pin
Michael Dunn19-Oct-01 10:23
sitebuilderMichael Dunn19-Oct-01 10:23 
GeneralRegional Settings Pin
19-Oct-01 8:25
suss19-Oct-01 8:25 
GeneralRe: Regional Settings Pin
Carlos Antollini19-Oct-01 8:39
Carlos Antollini19-Oct-01 8:39 
GeneralRe: Regional Settings Pin
Michael Dunn19-Oct-01 10:19
sitebuilderMichael Dunn19-Oct-01 10:19 
GeneralRe: Regional Settings Pin
19-Oct-01 12:24
suss19-Oct-01 12:24 

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.