Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The C0000005 Fatal Exception Error
Message
De
04/02/1999 10:34:25
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
03/02/1999 21:20:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00183223
Message ID:
00183872
Vues:
42
George, Fred, et al:

>>Kenneth is correct, ANY local variable reference to one of the TreeView node properties (FirstSibling, Next, etc.) cause the
problem. At the very least you get the "hanging" form that can not be closed, just like a dangling object reference. No amount of
NULLing, RELEASEing the variable helps. Sometime the form hangs, sometime you get the C....5 problem.<<

>>
>>PS:
>>I had posted a thread on this quite a few months ago...

I'm glad at least that I have ended up rediscovering something that someone else knew. Hopefully this will get MS to pay particular attention to this discrete and easily reproducible problem.

FWIW, I did go slightly crazy looking for my accidental public or private node pointer, and only after I had triple-checked the code did I come to the thought that the node pointers were "hanging" somehow. The clue was in the fact that the forms would not release.

Happily, though, you can pass a node pointer as a local parameter, and so long as you do not reassign it a la LoNode = LoNode.Next, you can still use node pointers, and it does work very nicely if you know about this "gotcha." The form is now doing exactly what I wanted.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform