Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute code when program crashes or is killed.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467160
Message ID:
00467182
Vues:
15
Hi Tim,

>Doesn't normally happen. Just thought maybe there was some bit of API code I could use..

Practically, no. Theoretically, yes. You can use a __try...__except control structure in C++ and execute VFP code from both branches using the _Execute() function within a FLL. However, according to my testing VFP only can execute one more line after a crash and this line cannot display anything. More problematic, however, is that you need to know which source code line exactly might raise an exception which is not a likely case in reality. *g*

Better find the reason for the crash and work around it.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform