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

Visual Basic

 
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 
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 
Hi,

I see no problem in retrying a couple of times, and only report failure if all tries have failed.
I would not actually use recursion for that though, recursion gets abused all too often.
Basically what I'd do is (in C# syntax, VB.NET can do similar things):

for (int tryCount=1; ; tryCount++) {
    try {
        ...
    } catch(Exception exc) (
        if (tryCount< maxTry) continue;
        log(exc.ToString());
        throw new ApplicationException("Operation XXX failed after "+maxTry+" tries", exc);
    }
}
// getting here on success only


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 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 
QuestionVb.Net tlb file Pin
rmedo11-Mar-09 4:08
rmedo11-Mar-09 4:08 
AnswerRe: Vb.Net tlb file Pin
Jon_Boy11-Mar-09 4:21
Jon_Boy11-Mar-09 4:21 

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.