Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form class won't release
Message
De
01/02/2002 02:16:46
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
31/01/2002 21:40:17
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00613806
Message ID:
00613844
Vues:
14
Hi James,
this is the code I use ...
o=NEWOBJECT("afindregion","aforms")
o.show(1)
if vartype(o)='O' AND !isnull(o) THEN &&maybe o releases itself ...
 o.release()
enif vartype(o)='O' 
o=.null.
Agnes
>Hi All
>
>I am using vfp7 sp1. I have built a form class that will not release. Here is the code.
>o=NEWOBJECT("afindregion","aforms")
>o.show(1)
>o=.null.
>
>I have done this many times and releasing o should release the form. In the when I had this problem I found an object stored as a property that would not let it release. This time I can’t seem to find any reason for it. Is there something wrong with what I am doing? If not, how do you find this type of problem?
>
>Thanks.
>
>PS I have several places that I am using this.newobject(... to create instantiate an object. Will creating an object this way release it self?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform