Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in RETURN TO ... (revisited)
Message
De
05/02/2009 01:35:21
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Divers
Thread ID:
01378918
Message ID:
01379390
Vues:
29
Michael,

In generaly, this is the idea behind the use of RETRY and RETURN in an errorhandler.

The problem is that it will be to tricky. If something reaches the general errorhandler it is called an "unexpected error".
Even if you can return one level back, this does not mean that this level will work. If, for example, you return one level back on a funtion with expected char and return boolean, it will fail too. This is the "cascade of techy errors"

Since nobody realy nows what will happen next, the only conclusion is to shut down the programm as safe as possible. This mean you need to call a handler that closes all data and shout the app dead.

How safe it will be depends on the application and programming style (buffering, use of transactions etc.)

Anything else would mean that the errohandler understand the prog.

BTW, yes there is a bug in RETURN TO Prog eExpression. This statement should raise an compiler error.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform