Information générale
Catégorie:
Codage, syntaxe et commandes
Fair enough.
Doesn't normally happen. Just thought maybe there was some bit of API code I could use..
Thanks for the fast response.
>>Is there a method that fires (or something I can do) so that I can execute
>>some code when :
>>a) The program crashes abnormally i.e. a c00005 error.
>>b) the program is killed from the task manager.
>>
>>Most of the time my error handler and on shutdown code can handle this but these
>>two situations I can't seem to trap.
>>
>
>Pretty obviously not, since both situations are trapped out by the OS, and control is never returned to VFP once the error occurs or the shutdown is forced via TerminateProcess() through Task Manager. VFP simply is removed from memory, and no code within the process ever fires again in these situations. This is the case with most OS-trapped critical errors. The OS protects the rest of the operating environment by forcing the process to stop immediately.
>
>>Thanks
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement