473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Process flow managament?

Hi,

I've been trying to find the best way of controlling the logic flow within
C# and have found lots of conflicting information. Few ways seem to be:

- passing back values to calling methods
- using rethrows
- using boolean

For example I may be doing something like:

Starting Main method which processes a file and passes each line into
Method1
Method1, accepts each line as a string parameter and acts on it. This may
be doing SQL lookups via a SQL method (SQLMethod1), checking AD via
ADMethod1 etc etc

Basically what I'm trying to find is the "best" way to catch problems in
this type scenario where a failure could occur in any method (for example
ADMethod1) and this should pass up into Method1 and ulitimately back to the
Main method. So if a particular entry in a file causes some sort of
failure, the main method should detect this, log it and carry on processing
subseqent lines (and not terminate at that point).

Also, in VBScript I could also use Exit Function to exit a function early on
the detection of the failure, how are most people handling this in C#?

Thanks for any help.

Nov 17 '05 #1
0 903

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Åstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
0
by: Praasd | last post by:
Hi I have a problem in understanding how to implement a process created in visio through code. For example I have a diagram in visio which is defining a process, lets assume some decision boxes i.e...
14
by: Xah Lee | last post by:
is there a way to condense the following loop into one line? # -*- coding: utf-8 -*- # python import re, os.path imgPaths= # change the image path to the full sized image, if it exists
3
by: Ricky Chan | last post by:
I am using windows 2003. I have unchecked all options in IIS6 application pool, so I assume no worker process recycling will be performed whether any event occured. what will be happened when...
2
by: JBudge | last post by:
I've created a program that will create zips and exes of all the product downloads on our website (mostly clipart and PowerPoint templates, around 6000 total), but the program slows down...
1
by: D-Someone | last post by:
I am re-posting this message as originially it did not get a single response.. Any ideas? -------------- I am trying to come up with a good design for a web service that has some user logic...
13
by: bayer.justin | last post by:
Hi, I am trying to communicate with a subprocess via the subprocess module. Consider the following example: <subprocess.Popen object at 0x729f0> Here hey is immediately print to stdout of...
9
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I'm running a process from my application and using streamReader to read it's output. the file i'm running, writes some output to the screen and exceute another program. I'm write the...
3
by: raghulvarma | last post by:
I did a small sample with three tier architecture and i need to know whether the flow of the program is correct or not.The pgm works fine. Inside web.config <configuration> <appSettings> ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.