>>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.