Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: creating ob...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 783 of 861
Post > Topic >>

Re: creating objects in VFP 7.0

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.
 




 4 Posts in Topic:
creating objects in VFP 7.0
shah <shahjagat@[EMAIL  2007-07-03 10:19:48 
Re: creating objects in VFP 7.0
Gene Wirchenko <genew@  2007-07-03 12:05:24 
Re: creating objects in VFP 7.0
shah <shahjagat@[EMAIL  2007-07-03 12:07:54 
Re: creating objects in VFP 7.0
Gene Wirchenko <genew@  2007-07-03 15:35:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:48:38 CDT 2008.