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

C / C++ / MFC

 
GeneralOLE DoVerb() problem Pin
28-Mar-01 23:27
suss28-Mar-01 23:27 
GeneralRe: OLE DoVerb() problem Pin
28-Mar-01 23:45
suss28-Mar-01 23:45 
GeneralRe: OLE DoVerb() problem Pin
29-Mar-01 0:19
suss29-Mar-01 0:19 
QuestionHow to make splitter windows scroll synchronously? Pin
28-Mar-01 22:28
suss28-Mar-01 22:28 
GeneralCursor problem Pin
Wolfram Steinke28-Mar-01 14:10
Wolfram Steinke28-Mar-01 14:10 
GeneralRe: Cursor problem Pin
Christian Graus28-Mar-01 15:11
protectorChristian Graus28-Mar-01 15:11 
GeneralHelp de-activating system menu in window Pin
Peter Sjöström28-Mar-01 6:49
Peter Sjöström28-Mar-01 6:49 
GeneralRe: Help de-activating system menu in window Pin
Sir Gras of Berger28-Mar-01 9:30
Sir Gras of Berger28-Mar-01 9:30 
IMHO, stuff that needs to be running 24h a day shouldn't be in a UI thread at all. (It probably shouldn't even be in a process that has a UI thread, but in a service.) So put that stuff in a background thread and leave the UI thread to do UI processing only.

If you can't because the messages you need to process are real windows messages (and you can't change that), process them with a different, hidden window -- which you could put in a different UI thread, though I'm not sure that's necessary.

If you take the approach that you want to detect a stalled situation and terminate it, you have to make sure you identify all possible stall situations ahead of time. You've identified one already, and even if there aren't any others now, you or someone else might add one in the future.

By using a different thread and/or window, you're more likely to be able to handle all possible stall situations without failing to process the incoming messages. The UI will get out of sync with data perhaps, but the messages will still be processed.


GeneralRe: Help de-activating system menu in window Pin
Peter Sjöström28-Mar-01 21:32
Peter Sjöström28-Mar-01 21:32 
GeneralHelp de-activating system menu in window Pin
Peter Sjöström28-Mar-01 6:48
Peter Sjöström28-Mar-01 6:48 
QuestionFlickering...? Pin
Manfred Ramosch28-Mar-01 3:45
Manfred Ramosch28-Mar-01 3:45 
AnswerRe: Flickering...? Pin
Chris Losinger28-Mar-01 8:17
professionalChris Losinger28-Mar-01 8:17 
AnswerRe: Flickering...? Pin
Erik Funkenbusch28-Mar-01 12:42
Erik Funkenbusch28-Mar-01 12:42 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 2:31
Manfred Ramosch29-Mar-01 2:31 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 3:01
protectorChristian Graus29-Mar-01 3:01 
GeneralRe: Flickering...? Pin
Erik Funkenbusch29-Mar-01 13:23
Erik Funkenbusch29-Mar-01 13:23 
AnswerRe: Flickering...? Pin
Christian Graus28-Mar-01 12:53
protectorChristian Graus28-Mar-01 12:53 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 2:54
Manfred Ramosch29-Mar-01 2:54 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 3:06
protectorChristian Graus29-Mar-01 3:06 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 3:54
Manfred Ramosch29-Mar-01 3:54 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 10:26
protectorChristian Graus29-Mar-01 10:26 
QuestionHow do I completely evict help from my project ? Pin
Christian Graus27-Mar-01 15:34
protectorChristian Graus27-Mar-01 15:34 
AnswerRe: How do I completely evict help from my project ? Pin
l a u r e n27-Mar-01 19:09
l a u r e n27-Mar-01 19:09 
GeneralRe: How do I completely evict help from my project ? Pin
Christian Graus27-Mar-01 19:14
protectorChristian Graus27-Mar-01 19:14 
GeneralRe: How do I completely evict help from my project ? Pin
l a u r e n27-Mar-01 20:06
l a u r e n27-Mar-01 20:06 

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.