Re: Robert Craig... One Wish Please

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ok,
Q:Why do we want error handling?

A:To stop the entire program crashing down on us when an intermittent or not 
easily reproducible error brings the entire program crashing down. The sort 
of error that can't be easily solved by checking for a
-1. Subscript errors come to mind.

I would like some way to return the program to normalcy once an error like 
this occurs, rather than just have the interpreter throw a hissy fit.

So, what I would like:
EG: I have is a sub-routine of a program that performs some incredibly 
complicated algorithm on a few complex sequences. *Occasionally*, it gets 
given a set that it can't process, so it currently crashes the whole 
program.
A nice solution would be to throw a subscript-error catch around the 
sub-routine, and put code in the catch that returns to the parent routine 
with an error flag, and a message. Thus, a user can get a MUCH more 
user-friendly dialog box saying "Sorry, an error has occurred" when this bug 
exhibits itself, then going back to the main window. ATM, you get a much 
less user-friendly blank screen, and the entire program crashes because of 
an error in a small part of it.

=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu