Click here to Skip to main content
15,884,975 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: POS discount headache Pin
originSH6-Aug-07 5:00
originSH6-Aug-07 5:00 
GeneralRe: POS discount headache Pin
dazfuller6-Aug-07 5:33
dazfuller6-Aug-07 5:33 
GeneralRe: POS discount headache Pin
led mike6-Aug-07 8:42
led mike6-Aug-07 8:42 
GeneralRe: POS discount headache Pin
Robson Félix14-Aug-07 7:01
Robson Félix14-Aug-07 7:01 
AnswerRe: POS discount headache Pin
amit.arora14-Aug-07 4:58
amit.arora14-Aug-07 4:58 
QuestionError States Pin
Leslie Sanford5-Aug-07 17:15
Leslie Sanford5-Aug-07 17:15 
AnswerRe: Error States Pin
Luc Pattyn5-Aug-07 22:52
sitebuilderLuc Pattyn5-Aug-07 22:52 
GeneralRe: Error States Pin
Leslie Sanford6-Aug-07 5:55
Leslie Sanford6-Aug-07 5:55 
Luc Pattyn wrote:
The File class does not handle events, but it does not launch separate threads eiher;
they leave it open to the user to make such choices if and when required.
if you do create a thread, obviously it may encounter a problem and I think you should
indeed include an event mechanism to signal those.


I was thinking about having an Error event that is raised when an exceptional situations happen on a thread other than the main one. The event will be marshaled to the main thread by using the SynchronizationContext class.

However, last night I did some research, particularly looking at Java's checked and unchecked exceptions. A best practises tutorial suggested that you should catch exceptions you can recover from but not those you cannot. Seems like common sense. So in those situations in which I can devise a strategy for recovering from an exception, I should catch it and deal with it. But there seems to be a class of exceptional situations in which there's not much that can be done. In those cases, the exception should not, according to the tutorial I was reading last night, be caught. I'm a little fuzzy on what happens to unhandled exceptions. I suppose there should be a strategy at the top level for dealing with them, notifying the user, and possibly shutting down the application.
GeneralRe: Error States Pin
Luc Pattyn6-Aug-07 6:23
sitebuilderLuc Pattyn6-Aug-07 6:23 
Questionencapsulation VS development time Pin
DynV2-Aug-07 14:13
DynV2-Aug-07 14:13 
AnswerRe: encapsulation VS development time Pin
led mike3-Aug-07 5:10
led mike3-Aug-07 5:10 
AnswerRe: encapsulation VS development time Pin
dazfuller6-Aug-07 5:38
dazfuller6-Aug-07 5:38 
QuestionRemove Quote from Writeline output Pin
rfrank535625-Jul-07 8:21
rfrank535625-Jul-07 8:21 
AnswerRe: Remove Quote from Writeline output Pin
..Hubert..26-Jul-07 3:38
..Hubert..26-Jul-07 3:38 
QuestionApplication framework for small or mid sized apps Pin
..Hubert..24-Jul-07 23:45
..Hubert..24-Jul-07 23:45 
AnswerRe: Application framework for small or mid sized apps Pin
drinkwater25-Jul-07 4:26
drinkwater25-Jul-07 4:26 
GeneralRe: Application framework for small or mid sized apps Pin
Dave Herren25-Jul-07 9:55
Dave Herren25-Jul-07 9:55 
GeneralRe: Application framework for small or mid sized apps Pin
..Hubert..25-Jul-07 22:24
..Hubert..25-Jul-07 22:24 
GeneralRe: Application framework for small or mid sized apps Pin
led mike3-Aug-07 5:03
led mike3-Aug-07 5:03 
GeneralRe: Application framework for small or mid sized apps Pin
..Hubert..3-Aug-07 5:38
..Hubert..3-Aug-07 5:38 
GeneralRe: Application framework for small or mid sized apps Pin
led mike3-Aug-07 7:02
led mike3-Aug-07 7:02 
AnswerRe: Application framework for small or mid sized apps Pin
awesomeo21-Aug-07 20:18
awesomeo21-Aug-07 20:18 
QuestionRecording a wave file Pin
Leslie Sanford21-Jul-07 16:35
Leslie Sanford21-Jul-07 16:35 
AnswerRe: Recording a wave file Pin
Luc Pattyn22-Jul-07 1:14
sitebuilderLuc Pattyn22-Jul-07 1:14 
GeneralRe: Recording a wave file Pin
Leslie Sanford22-Jul-07 3:34
Leslie Sanford22-Jul-07 3:34 

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.