Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I didn't know you could do this...
Message
From
07/10/2000 20:31:41
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00426345
Message ID:
00426555
Views:
18
>Vlad,
>
>>Finaly, try
>>oTest1.name = 'node123'
>>gather name otest1
>>
>>Now otest1.children = .NULL., and otest2 gone from memory!!! Looks like bug with object references...
>
>I do not see this behavior. After your two statements, oTest1.children is still an object reference to oTest2 and oTest2 is still intact. Your results are consistent with what would happen if you 'release oTest2'. Any chance that happened? (VFP6/SP3)

Yes, VFP6/SP3. I changed values from 'locals' window in debugger, however, instead of "oTest1.name = 'node123'". I cannot reproduce it any more, but sure,
'Release' command and other like that were not used. Just after some changes in properties of these objects (when oTest1 referenced oTest2), 'gather name otest1' command caused oTest2 being destroyed. The most interesting thing is that oTest2 disappeared completely from memory, and correct value (.NULL.) placed in oTest1 object. Looks like 'scatter name' object is not variable with object refernce like for usual cases in VFP, but something like internal object without any reference, so it disappears as soon as VFP ask question 'if ReferenceCount = 0 (yes)=> Destory that object'.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform