473,958 Members | 3,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

On Error Resume Next

Hi,
I want to find out if there's difference between "On Error Resume
Next" error handler and leaving "catch" block empty in a try-catch-end
try block to ignore exceptions which i don't approve of course but
just needed to ask.

Thanks
Jan 20 '08
19 6612
"Michael C" <mi**@nospam.co mwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
"Guru" <ru*****@interf erence.nitwrote in message
news:uv******** ********@TK2MSF TNGP05.phx.gbl. ..
>The long delay is indicative of a serious stack issue... more precisely,
stack corruption; there should be no delay. What you did was kludge your
code and leave the root cause completely unresolved. The cause is still
there in your code, lurking, waiting, ready to scribble all over your
customer's valuable data at the first opportune moment and in a
completely
unexpected place elsewhere in the application.

What a complete and utter load of rubbish.
That is precisely what I was implicating your code of being. I'll write you
up for one "I Know You Are But What Am I" lame.
>To put that a different way, when faced with a delay in an exception, the
question you should ask yourself is, why is the code falling over at all,
not, how can you kludge your badly-written code without finding and
fixing
the cause.

You really have no idea what my code was like. There was absolutely
nothing wrong with the code or the structure of it.
There is absolutely nothing wrong with eating food you found in a dumpster,
if you're a rat.

If it is the case that "there was absolutely nothing wrong with the code"
then it necessarily follows that your earlier claim of "an empty string or
null would cause an exception" is false.
>I suggest that the strength of every single argument for avoiding them is
inversely proportional to how crappy a programmer you are.

You clearly are an idiot.
>Touché to me.

bwahahahahahaha haha
You're not very good at either programming or simple logic. Do you have any
redeeming attributes at all?
Jan 21 '08 #11
"Guru" <ru*****@interf erence.nitwrote in message
news:O$******** **********@TK2M SFTNGP03.phx.gb l...
You're not very good at either programming or simple logic. Do you have
any redeeming attributes at all?
You're really not very good at being a troll, although you do try very hard.
Sorry, but I am not playing your games.

Michael
Jan 21 '08 #12
Guru,

I hope that some day the calculation of your payment will fall in that by
you not catched try block.

This is what a real proffesional programmer never would do.

Just my thought about this kind of lazy programmer stuff you show.

Cor

Jan 21 '08 #13
You could easily check the MSIL code to see how on error resume next is
implemented.

Else I would do things the other way round. What are you trying to do ? Or
is it just curiosity about something you won't use ?
--
Patrice

"kimiraikko nen" <ki************ *@gmail.coma écrit dans le message de news:
3a************* *************** **...legroups .com...
Hi,
I want to find out if there's difference between "On Error Resume
Next" error handler and leaving "catch" block empty in a try-catch-end
try block to ignore exceptions which i don't approve of course but
just needed to ask.

Thanks

Jan 21 '08 #14
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:67******** *************** ***********@mic rosoft.com...
While guru is a bit obnoxious in his message style, I agree with his
sentiment.

There are plenty of cases where you would correctly use ON ERROR RESUME
NEXT
or a Try...Catch with an empty catch block.
That appeared to be the only point he was correct on though. His idea that
exceptions are slow due to sloppy programming is just plain wrong. His idea
that there are no reasons to avoid a Try Catch is just plain wrong. His
general perception of himself as some sort of guru is just plain wrong.
(Guru, if you reply to this I am not going to read your response let alone
reply to you).

Michael
Jan 23 '08 #15
"Michael C" <mi**@nospam.co mwrote in message
news:uk******** ******@TK2MSFTN GP05.phx.gbl...
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:67******** *************** ***********@mic rosoft.com...
>While guru is a bit obnoxious in his message style, I agree with his
sentiment.

There are plenty of cases where you would correctly use ON ERROR RESUME
NEXT
or a Try...Catch with an empty catch block.

That appeared to be the only point he was correct on though. His idea that
exceptions are slow due to sloppy programming is just plain wrong.
Correction, you lying dribble stain. You mentioned encountering a very slow
exception and I said, and I quote:

The long delay is indicative of a serious stack issue... more precisely,
stack corruption; there should be no delay.
Freaking liar.
His idea that there are no reasons to avoid a Try Catch is just plain
wrong.
Lying little sh1t. I said, and I quote:

I suggest that the strength of every single argument for avoiding them is
inversely proportional to how crappy a programmer you are.
His general perception of himself as some sort of guru is just plain
wrong.
Huh? My name _IS_ Guru, you brain-dead cowpat. Guru Sandaramurthy. I made no
claim to being a 'guru', and you know it, you lying pillock.
(Guru, if you reply to this I am not going to read your response let alone
reply to you).
Yeah... you don't want to see if your bare-faced lies get found out, I know.
Michael, The Lying Tapeworm.
Edited.
Jan 23 '08 #16
I for one am ignoring Guru's posts now, he's obviously a troll with no real
programming ability. In another thread he revealed that he thinks
Backhaus-Naur Form is a file protocol :lol:
--
David Streeter
Synchrotech Software
Sydney Australia
"Michael C" wrote:
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:67******** *************** ***********@mic rosoft.com...
While guru is a bit obnoxious in his message style, I agree with his
sentiment.

There are plenty of cases where you would correctly use ON ERROR RESUME
NEXT
or a Try...Catch with an empty catch block.

That appeared to be the only point he was correct on though. His idea that
exceptions are slow due to sloppy programming is just plain wrong. His idea
that there are no reasons to avoid a Try Catch is just plain wrong. His
general perception of himself as some sort of guru is just plain wrong.
(Guru, if you reply to this I am not going to read your response let alone
reply to you).

Michael
Jan 23 '08 #17
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:3E******** *************** ***********@mic rosoft.com...
>I for one am ignoring Guru's posts now, he's obviously a troll with no real
programming ability. In another thread he revealed that he thinks
Backhaus-Naur Form is a file protocol :lol:
I did no such thing, you lying spunkstain.
Jan 23 '08 #18
TYPO: Backus-Naur, not Backhaus-Naur

BNF. Whatever that stands for :-)

--
David Streeter
Synchrotech Software
Sydney Australia
"SurturZ" wrote:
I for one am ignoring Guru's posts now, he's obviously a troll with no real
programming ability. In another thread he revealed that he thinks
Backhaus-Naur Form is a file protocol :lol:
--
David Streeter
Synchrotech Software
Sydney Australia
"Michael C" wrote:
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:67******** *************** ***********@mic rosoft.com...
While guru is a bit obnoxious in his message style, I agree with his
sentiment.
>
There are plenty of cases where you would correctly use ON ERROR RESUME
NEXT
or a Try...Catch with an empty catch block.
That appeared to be the only point he was correct on though. His idea that
exceptions are slow due to sloppy programming is just plain wrong. His idea
that there are no reasons to avoid a Try Catch is just plain wrong. His
general perception of himself as some sort of guru is just plain wrong.
(Guru, if you reply to this I am not going to read your response let alone
reply to you).

Michael

Jan 23 '08 #19
"SurturZ" <su*****@newsgr oup.nospamwrote in message
news:3E******** *************** ***********@mic rosoft.com...
>I for one am ignoring Guru's posts now, he's obviously a troll with no real
programming ability.
Not only does he have no programming ability he's not even a very good
troll. A good troll will keep people hooked in, everyone's bailing on this
clown after a few posts.

Michael
Jan 23 '08 #20

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

Similar topics

7
5219
by: jason | last post by:
Is there a way to avoid On Error Resume Next for: cnn.Open strCon SQL = "EXEC Customer @txtEmail='" & email_address & "'" set rs = cnn.execute(SQL) 'On error resume next rs("email_address") '// This record does not exist thus throwing up an error. I could use On
3
2228
by: Laphan | last post by:
Hi Everybody I put the On Error Resume Next command as the very first line in my ASP pages, which may contain various inc files and sub-routines/functions, so that I can try and stop the dreaded DB error messages displaying to visitors and would-be hackers. My question is, does this one statement at the top of the page cater for all of the code that might be executed in the page, in the include files and in sub-routines/functions or...
2
419
by: tom blower | last post by:
Access 2k (10.6501.6714) SP3 For YEARS the code line "On Error Resume Next" has worked without any problems. It is an essential tool. A couple of days ago, I put in another hard drive, mentioned because the problems have arisen since then, and transferred a lot of files, mainly MDB files, to the new drive. This line of code now fails to work in all the databases I have tried. I get error messages where none appeared before. I tried to...
5
8619
by: itsupport1 | last post by:
Hi, I am importing some records from one table to another table, and due to Constraints in the destination table, it Throws an Exception and Skip the Whole Rest of records. So I did implement the On Error Resume next Statement, to avoid skipping the process of Inserting the records. But the Problem is
3
27470
by: bob.needler | last post by:
I know On Error Resume Next is generally considered lazy. But can someone tell me why the resume next in Exit_Handler does not seem to work? It generates the typical unhandled runtime error message from Access. If I comment out the 1st On Error Resume Next and the x = 1 / 0 on the next line there is no difference, i.e. ther same unhandled error on the same line. I included these 2 lines of code to demonstrate that On Error Resume Next...
7
17209
by: bikesandcars | last post by:
Hello guys, I stumbled upon this forum recently and am hoping someone here can help me with this problem. This is probably very stupid, but I can't get past this easy problem / glitch. All I need to do is test if a table exists, and then delete it if it does (so I can create a new one). Of course, you can't delete a table if it doesn't exist, and this returns an error. Every source I've looked at says an easy way to solve this...
4
3800
by: Neo | last post by:
I found on error resume next doesn't work in for each... e.g. on error resume next for each x in y 'do stuff next if you have an error in for each loop, it falls in infinite loop... it doesn't move to next element... this sad thing but, it's indication that we must move to try catch instead of on error.
11
48037
by: Maxwell2006 | last post by:
Hi, I know that this is not a good practice, but I wonder do we have "on error resume next" in C#? Thanks,
4
5120
esimond
by: esimond | last post by:
Hi All ! Just joined this big community, and a BIG Swiss Hello in there ! Having recently switched from VB to C#, I indeed still have to discover all the powerful sides of that great language. OK, try catch finally are great, but...
18
2631
by: julietbrown | last post by:
Can you boost my understanding of Access? I don't like things I can 'cure' but don't understand why! I've converted the Save macro on my form to VBA. It looks like this ... as I'm sure you already know. Private Sub SaveChanges_Click() On Error GoTo SaveChanges_Click_Err On Error Resume Next DoCmd.RunCommand acCmdSaveRecord
0
10255
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11314
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11464
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8363
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7521
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6296
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5049
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4630
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.