Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The C0000005 Fatal Exception Error
Message
From
04/02/1999 10:34:25
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00183223
Message ID:
00183872
Views:
43
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform