Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Crashes on App Exit
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
VFP Crashes on App Exit
Miscellaneous
Thread ID:
00166756
Message ID:
00166756
Views:
114
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
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform