Click here to Skip to main content
15,885,885 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: RAD Basic Pin
TNCaver10-May-22 5:34
TNCaver10-May-22 5:34 
GeneralRe: RAD Basic Pin
OriginalGriff10-May-22 5:49
mveOriginalGriff10-May-22 5:49 
GeneralRe: RAD Basic Pin
obermd10-May-22 9:14
obermd10-May-22 9:14 
GeneralRe: RAD Basic Pin
TNCaver11-May-22 3:05
TNCaver11-May-22 3:05 
GeneralRe: RAD Basic Pin
trønderen11-May-22 12:26
trønderen11-May-22 12:26 
GeneralRe: RAD Basic Pin
Slacker00710-May-22 6:28
professionalSlacker00710-May-22 6:28 
GeneralRe: RAD Basic Pin
obermd10-May-22 9:13
obermd10-May-22 9:13 
GeneralRe: RAD Basic Pin
Dave Kreskowiak10-May-22 6:00
mveDave Kreskowiak10-May-22 6:00 
On Error Resume Next is far worse than the empty catch block.

In VB, the code will keep trying to execute line after line of code, even if they all fail, until the On Error is rescinded by another On Error line. This can lead to data loss if not carefully managed.

You also lose all of the error information on the original failure and the error handling model doesn't lend itself to the easy logging of errors.

An exception in a try block will simply stop executing that code and jump straight to the empty catch block, then a finally block (if supplied.)

Even if the catch block doesn't do anything to recover from an exception, you can at least still easily add code to log the error and other metadata in one place.

GeneralRe: RAD Basic Pin
obermd10-May-22 9:15
obermd10-May-22 9:15 
GeneralRe: RAD Basic Pin
Roland M Smith10-May-22 9:21
Roland M Smith10-May-22 9:21 
GeneralRe: RAD Basic Pin
Mycroft Holmes10-May-22 12:32
professionalMycroft Holmes10-May-22 12:32 
GeneralRe: RAD Basic Pin
jeron110-May-22 12:39
jeron110-May-22 12:39 
GeneralRe: RAD Basic Pin
Gary R. Wheeler10-May-22 14:22
Gary R. Wheeler10-May-22 14:22 
GeneralRe: RAD Basic Pin
TNCaver11-May-22 3:02
TNCaver11-May-22 3:02 
GeneralRe: RAD Basic Pin
kmoorevs11-May-22 4:05
kmoorevs11-May-22 4:05 
GeneralRe: RAD Basic Pin
TNCaver11-May-22 11:10
TNCaver11-May-22 11:10 
GeneralCCC 10-05-2022 Pin
pkfox9-May-22 21:36
professionalpkfox9-May-22 21:36 
GeneralRe: CCC 10-05-2022 Pin
OriginalGriff9-May-22 21:56
mveOriginalGriff9-May-22 21:56 
GeneralRe: CCC 10-05-2022 Pin
pkfox9-May-22 22:16
professionalpkfox9-May-22 22:16 
GeneralRe: CCC 10-05-2022 Pin
Kornfeld Eliyahu Peter9-May-22 22:01
professionalKornfeld Eliyahu Peter9-May-22 22:01 
GeneralRe: CCC 10-05-2022 Pin
OriginalGriff9-May-22 22:16
mveOriginalGriff9-May-22 22:16 
GeneralRe: CCC 10-05-2022 Pin
Vivi Chellappa9-May-22 23:30
professionalVivi Chellappa9-May-22 23:30 
GeneralRe: CCC 10-05-2022 Pin
OriginalGriff10-May-22 1:08
mveOriginalGriff10-May-22 1:08 
GeneralRe: CCC 10-05-2022 - Winner !!! Pin
pkfox10-May-22 1:10
professionalpkfox10-May-22 1:10 
GeneralRe: CCC 10-05-2022 Pin
Craig Robbins10-May-22 2:06
Craig Robbins10-May-22 2: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.