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 oTransactionoTransaction has a property oItemThe form calls This.oTransaction.Log( This.oInventoryItem). The Log method loads the property oItem with the object it is passedIf 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