Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Inputbox triggering form_closed event Pin
Sonhospa13-Mar-09 12:21
Sonhospa13-Mar-09 12:21 
GeneralRe: Inputbox triggering form_closed event Pin
Luc Pattyn13-Mar-09 12:30
sitebuilderLuc Pattyn13-Mar-09 12:30 
AnswerRe: Inputbox triggering form_closed event Pin
Dave Kreskowiak12-Mar-09 3:47
mveDave Kreskowiak12-Mar-09 3:47 
GeneralRe: Inputbox triggering form_closed event Pin
Sonhospa12-Mar-09 9:29
Sonhospa12-Mar-09 9:29 
Questionerror propagation [modified] Pin
captainmogo11-Mar-09 9:58
captainmogo11-Mar-09 9:58 
AnswerRe: error propagation Pin
Dave Kreskowiak12-Mar-09 3:46
mveDave Kreskowiak12-Mar-09 3:46 
GeneralRe: error propagation Pin
captainmogo12-Mar-09 4:15
captainmogo12-Mar-09 4:15 
GeneralRe: error propagation Pin
Luc Pattyn12-Mar-09 4:54
sitebuilderLuc Pattyn12-Mar-09 4:54 
Hi,

here are some guide lines, they should enable you to make good decisions about error handling:

1. only try-catch exceptions your catch can deal with; don't just swallow exceptions to make them go away; always leave some trace of an exception, say in a log file. it makes debugging much harder if you don't.

2. when you want retries, you can but the try-catch inside the loop and swallow exceptions in all but the last iteration. Don't retry forever.

3. background threads typically need to report back to their parent thread, whether success or failure. You shouldn't have a background thread retry forever, or just fail or give up without telling.

4. when your app needs to report failure back to the user, make sure to have both a message the user can understand (and knows what we'd do best then), and the technical information behind it (that could be the low-level exception) should be somewhere, again in a log file.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: error propagation Pin
captainmogo12-Mar-09 5:03
captainmogo12-Mar-09 5:03 
GeneralRe: error propagation Pin
Luc Pattyn12-Mar-09 5:23
sitebuilderLuc Pattyn12-Mar-09 5:23 
GeneralRe: error propagation Pin
captainmogo12-Mar-09 8:14
captainmogo12-Mar-09 8:14 
QuestionHow to export to word using VB 2008 Pin
Manfred ramirez11-Mar-09 8:45
Manfred ramirez11-Mar-09 8:45 
AnswerRe: How to export to word using VB 2008 Pin
Luc Pattyn11-Mar-09 9:41
sitebuilderLuc Pattyn11-Mar-09 9:41 
Questiontransfer data from xml to database table Pin
madhuchandran11-Mar-09 6:49
madhuchandran11-Mar-09 6:49 
AnswerRe: transfer data from xml to database table Pin
Jon_Boy11-Mar-09 7:01
Jon_Boy11-Mar-09 7:01 
QuestionHow to ping every computer in a LAN Pin
Amer Rehman11-Mar-09 6:41
Amer Rehman11-Mar-09 6:41 
AnswerRe: How to ping every computer in a LAN Pin
0x3c011-Mar-09 6:59
0x3c011-Mar-09 6:59 
AnswerRe: How to ping every computer in a LAN Pin
Expert Coming11-Mar-09 22:35
Expert Coming11-Mar-09 22:35 
Question.NET Remoting help Pin
OorSkietKoS11-Mar-09 5:42
OorSkietKoS11-Mar-09 5:42 
AnswerRe: .NET Remoting help Pin
Johan Hakkesteegt11-Mar-09 7:41
Johan Hakkesteegt11-Mar-09 7:41 
GeneralRe: .NET Remoting help Pin
OorSkietKoS11-Mar-09 20:25
OorSkietKoS11-Mar-09 20:25 
GeneralRe: .NET Remoting help Pin
Johan Hakkesteegt12-Mar-09 2:18
Johan Hakkesteegt12-Mar-09 2:18 
AnswerRe: .NET Remoting help Pin
Dave Kreskowiak12-Mar-09 3:40
mveDave Kreskowiak12-Mar-09 3:40 
GeneralRe: .NET Remoting help Pin
OorSkietKoS12-Mar-09 4:40
OorSkietKoS12-Mar-09 4:40 
GeneralRe: .NET Remoting help Pin
Dave Kreskowiak12-Mar-09 5:55
mveDave Kreskowiak12-Mar-09 5:55 

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.