Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load method bomb warning
Message
De
30/01/2002 16:41:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Load method bomb warning
Divers
Thread ID:
00613066
Message ID:
00613066
Vues:
52
I meant to put this into the thread awhile back. It's a WARNING. We were accustomed to puting a lot of code into the Load method because in Fox2x this is what you did. All of our screens have been converted into VFP and we continued with the habit sometimes of using the Load to run some things.

This lead to a couple of big disasters! One instance was a simple Keyboard clearing routine. Under certain extreme circumstances we'd get a disasterous failure (1999 I think) and the failure can't be trapped. It took a while to determine where the failure generated from. Move the code into the Init method and the problem disappears.

In another form we were starting some DBI components from the Load method and sometimes, not always, this generated GPF's. Sometimes we had to reboot the compter. Once again, we move the code to the Init method and everything is fine.

In summary, get in the habit of using the Init method and leave the Load alone. Our failures were in VFP 6, but I assume VFP 7 has the same problem.

- Glen -
- Glen -

The impossible we do immediately.
The miraculous will take a little longer.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform