Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Crashes on App Exit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
VFP Crashes on App Exit
Divers
Thread ID:
00166756
Message ID:
00166756
Vues:
110
My VFP app is crashing when I pick File --> Exit. I've narrowed down the statement that is "causing" this, but I don't think I have found the root cause and am hoping someone has a debugging suggestion.

Here's the situation:
  • a form with a properties oInventoryItem and oTransaction

  • oTransaction has a property oItem

  • The form calls This.oTransaction.Log( This.oInventoryItem). The Log method loads the property oItem with the object it is passed


  • If I comment out this assignment in Log, VFP stops crashing. The Log method sets oItem to .NULL. before it completes. The form sets both oInventoryItem and oTransaction to NULL in its destroy. I'm able to close the form fine. I tried using David Frankenbach's object finder utility and there are no suspicious references around once the form is closed.

    I build a dummy VFP program that duplicates this scenario and it runs just fine, so obviously I'm missing something.

    Why else could This.oItem = toItem be causing VFP to crash? If I had a reference to Thisform.oInventoryItem around, wouldn't the form refuse to close? TIA.
    ----------
    Mark Bucciarelli
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform