• Welcome to Valhalla Legends Archive.
 

[VB] Function Integrity Checks at Runtime

Started by Permaphrost, March 08, 2006, 03:01 PM

Previous topic - Next topic

Permaphrost

You are handling them, nonetheless. You are instructing the program what to do if an error occurs - not handling them would be to simply let them occur and be unable to execute your code.

Projects: GenesisStarcraft Drawing | Fear | pLoader  | CECP

Mystical

 On Error Resume Next  is not handling an Error, as Warrior stated is simply ignoreing all Errors and just moving on.. also by not having all your errors handled, you wont beable to find what the exact errors are to fix the problems if any, using it this way wont always let your program run properly..

RealityRipple

Reminds me of a geek philosophy on life I made up... Universe: Uni Verse... One verse... verses can be lines... lines of code... On Error Resume Next is a line of code... and it explains how the universe works... When something happens, just move on to the next thing....

Annnnyway... On Error Resume Next, whether it is handling or not, is still bad coding practice unless the errors do NOT matter, like on Form_Resize in most cases. However, Error handlers should include Resume Next at the end, otherwise the rest of the procedure is ignored. HOWEVER this has NOOOOTHING to do with what we were talking about. It was just a stupid response to a stupid statement.

topaz

Quote from: RealityRipple on March 09, 2006, 06:32 PM
Reminds me of a geek philosophy on life I made up... Universe: Uni Verse... One verse... verses can be lines... lines of code... On Error Resume Next is a line of code... and it explains how the universe works... When something happens, just move on to the next thing....

Annnnyway... On Error Resume Next, whether it is handling or not, is still bad coding practice unless the errors do NOT matter, like on Form_Resize in most cases. However, Error handlers should include Resume Next at the end, otherwise the rest of the procedure is ignored. HOWEVER this has NOOOOTHING to do with what we were talking about. It was just a stupid response to a stupid statement.

...

This is why you should stay on the Brutalnet boards.
RLY...?

Warrior

Quote from: Permaphrost on March 09, 2006, 03:27 PM
You are handling them, nonetheless. You are instructing the program what to do if an error occurs - not handling them would be to simply let them occur and be unable to execute your code.

How are you handling them if you are making the errors be supressed. Nothing is being fixed, you just are suppresing the errors from showing. If your application is going to hang, it's going to hang regardless of how many times you type "On Error Resume Next". At the least it will produce unexpected results when an error occurs.

Horrible, horrible coding habbit to get into.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Permaphrost

Quote from: Warrior on March 09, 2006, 07:43 PM

How are you handling them if you are making the errors be supressed. Nothing is being fixed, you just are suppresing the errors from showing. If your application is going to hang, it's going to hang regardless of how many times you type "On Error Resume Next". At the least it will produce unexpected results when an error occurs.

Horrible, horrible coding habbit to get into.

You're right, it is a nasty coding habit to get into. I'm not implying that "handling" errors by supressing them in this way is going to correct anything, simply stating that if you instruct a program to take action on an error, it is error handling.

Projects: GenesisStarcraft Drawing | Fear | pLoader  | CECP

Warrior

You're instructing it to do nothing..
It's only handled if you take care of the error, you just skip over it potentially producing unwanted results.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Explicit

Warrior, calm down.  He acknowledged it already.  :)
I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

Permaphrost

Quote from: Warrior on March 09, 2006, 10:01 PM
It's only handled if you take care of the error

I am not trying to pick at what you're saying, so I do hope it doesn't seem that way. But error handling can be anything from reporting the error or saving information about the error, to functions that deal with certain errors to prevent them from adversely affecting the program. It does not have to fix the problem.

Anyway, sorry that this topic strayed off on a bit of a tangent here. Thank you to those who helped with the original question.

Projects: GenesisStarcraft Drawing | Fear | pLoader  | CECP