Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parsing with bison and flex Pin
Ryan Binns20-Jun-03 4:01
Ryan Binns20-Jun-03 4:01 
GeneralRe: Parsing with bison and flex Pin
andyg.10120-Jun-03 4:26
andyg.10120-Jun-03 4:26 
GeneralRe: Parsing with bison and flex Pin
Ryan Binns20-Jun-03 4:30
Ryan Binns20-Jun-03 4:30 
GeneralIn Activex control, child windows are not painted correctly while scrolling IE. Pin
S.Maharajan20-Jun-03 1:41
S.Maharajan20-Jun-03 1:41 
GeneralForm Problem Pin
Anonymous20-Jun-03 0:43
Anonymous20-Jun-03 0:43 
GeneralRe: Form Problem Pin
Joan M20-Jun-03 1:15
professionalJoan M20-Jun-03 1:15 
Generaldetecting exceptions in threads Pin
Chris Eatough20-Jun-03 0:20
Chris Eatough20-Jun-03 0:20 
GeneralRe: detecting exceptions in threads Pin
Ryan Binns20-Jun-03 2:12
Ryan Binns20-Jun-03 2:12 
Ubersnack wrote:
Wouldnt an unhandled exception stop all the other threads associated with the process

Nope. Exceptions only affect a single thread.

My solution would be to not write to a file at all. I would have the program send a message to the other program (use SendMessage() to the other program's window) periodically, in response to a WM_TIMER message. Do this from the same thread as the one that takes input. If there is an exception, the timer handler will not get called, and the message will not get sent. If the other program doesn't receive a message within a certain time period (I would set it to 2-3 times the message period) then it can restart the program.

Hope this helps,

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: detecting exceptions in threads Pin
Chris Eatough20-Jun-03 3:51
Chris Eatough20-Jun-03 3:51 
GeneralRe: detecting exceptions in threads Pin
Jonathan Craig20-Jun-03 3:58
Jonathan Craig20-Jun-03 3:58 
GeneralMouse wheel emulation Pin
Rage20-Jun-03 0:08
professionalRage20-Jun-03 0:08 
GeneralRe: Mouse wheel emulation Pin
KaЯl20-Jun-03 2:15
KaЯl20-Jun-03 2:15 
GeneralRe: Mouse wheel emulation Pin
Ryan Binns20-Jun-03 2:18
Ryan Binns20-Jun-03 2:18 
GeneralBitmap Pin
Anonymous19-Jun-03 23:34
Anonymous19-Jun-03 23:34 
GeneralRe: Bitmap Pin
KaЯl20-Jun-03 2:23
KaЯl20-Jun-03 2:23 
GeneralRe: Bitmap Pin
Anonymous20-Jun-03 2:54
Anonymous20-Jun-03 2:54 
GeneralRe: Bitmap Pin
KaЯl20-Jun-03 3:08
KaЯl20-Jun-03 3:08 
GeneralRe: Bitmap Pin
Anonymous20-Jun-03 11:06
Anonymous20-Jun-03 11:06 
GeneralRe: Bitmap Pin
KaЯl20-Jun-03 11:50
KaЯl20-Jun-03 11:50 
GeneralRe: Bitmap Pin
Anonymous21-Jun-03 0:37
Anonymous21-Jun-03 0:37 
GeneralRe: Bitmap Pin
KaЯl22-Jun-03 21:19
KaЯl22-Jun-03 21:19 
Generaltrying to redefine an int array as a double array Pin
avenhor19-Jun-03 23:12
avenhor19-Jun-03 23:12 
GeneralRe: trying to redefine an int array as a double array Pin
Anonymous19-Jun-03 23:36
Anonymous19-Jun-03 23:36 
GeneralRe: trying to redefine an int array as a double array Pin
David Crow20-Jun-03 4:21
David Crow20-Jun-03 4:21 
QuestionForbid execution ? Pin
The TaZ19-Jun-03 22:56
The TaZ19-Jun-03 22:56 

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.