Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wiping out (data)Session object
Message
From
27/05/2008 09:22:29
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319497
Message ID:
01319641
Views:
18
>>>>
>>>Calling Destroy() method directly (or release method directly) works?
>>>
>>>E.g. array[i].Destroy()
>>> array[i] = null
>>>
>>>?
>>__
>>Calling Destroy() will not work, I assume.
>>
>>One possibility is to subclass Session, add a release method and call that - that may work - not tested
>>
>>
>>define class MySession as Session
>>
>>function Release()
>>  release m.this
>>endfunc
>>enddefine
>>
>
>
>I would not have thought to use m.this. What is that exactly? Obviously it's a memvar pointing to the object, I just didn't know one was created automatically.

___
This is always there whenever an object is created

It just happens to work - do not ask me why
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform