Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh() locking form?
Message
De
01/07/2003 18:34:51
 
 
À
01/07/2003 18:27:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00805862
Message ID:
00805881
Vues:
20
>>I'm using VFP 7.0
>>
>>myContainer does a cancel when a particular error occurs.
>>myContainer contains myCmdButton and myChkAuto.
>>myContainer.Refresh() looks at myChkAuto and executes myMethod()
>>myContainer.myCmdButton.Click() executes myMethod()
>>
>>When an error() occurs during myMethod():
>>if it was triggered by myCmdButton everything is fine.
>>but if it was triggered by myContainer.Refresh() the form cannot be closed.
>>
>>There are no objects created. In fact that's what the error is - no object was created.
>>I can't see any differenct between the 2 triggers. Is there something internal in Refresh() that locks the form if it's cancelled?
>
>No, but you may be hung up in a loop that's just generating errors that aren't handled. Round and round it goes, but nobody's handling the error, so it's a vicious circle (ie: hung).

Nope, when I trace it, everything works just fine. The cancel is executed and I'm returned to the form. I just can't close it.
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform