Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form exiting unexpectedly
Message
 
 
À
29/03/2004 18:04:52
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00890623
Message ID:
00890652
Vues:
16
Sony,

Have you stepped through the code in the debugger to see what causes the form to destruct? It's quite possible for code in myClass to cause the form to be released. CLEAR ALL is one candidate to look for.

>I have a form with a grid and a command button. the button runs some code based on the selected item in the grid. The code is similar to this
>
>loProcess = Newobject("myClass", "mClassLib.Prg")
>loProcess.Process()
>loProcess=.NULL.
>CLEAR CLASS myClass
>RETURN
>
>My problem is, the form gets released , even without the RELEASE command. There is something in the class that causes this behaviour. There is no reference to BINDEVENT or Thisform in the class at all. If anyone can think of a immediate cause, that would be of great help.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform