Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release Property
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00306719
Message ID:
00307382
Views:
25
>>Hi,
>> I have the following statement, ...
>>
>>
>>form.Init
>>THISFORM.osecurity = NEWOBJECT("osession", "mysession.prg", para1, para2)
>>
>>form.queryunload
>>THISFORM.osecurity = .NULL.
>>
>>
>>Does it release the reference?
>
>Yes it will as long as there is no other reference. How would you get another reference, well if any code anywhere says;
>
>Something = FormName.oSecurity

It occurs to me that QueryUnload sometimes does not get fired (for example if you trigger thisform.release() directly); the Release event of the Form should release the property IAC, destroying the object in the process if no other refs exist.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform