by Gene Wirchenko <genew@[EMAIL PROTECTED]
>
Jul 3, 2007 at 12:05 PM
shah <shahjagat@[EMAIL PROTECTED]
> wrote:
>If I am creating an object in the init event of a form - do I need to
>expressely release the object or does it get released when the form
>unloads?
It depends on how you store the reference. When the variable
that has the reference is released, the object will be released.
Two cases: If you store the reference in a property of that form,
the object will be released when the form is destroyed. If you store
the reference in a local variable, the object will be release when
init() terminates.
You might also forcibly release the variable. That will do it,
too.
Sincerely,
Gene Wirchenko
Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.