Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible WISH LIST item?
Message
 
 
À
25/10/1998 06:15:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149579
Message ID:
00150339
Vues:
39
Dragan,

I did indeed miss the thread before, thanks for reposting it. Frankly it's far too much work to go through. And if you ran through all the possible places objects can be lying around and recursed through their containership hierarchy you could probably get something working.

If you are in development and want to get rid of everything CLEAR ALL or Alt-F+X does a wonderful job of taking out the garbage. *LOL*

I can't ever see the need for anything remotely like Jim's wishlist item in a deployed app. Where the programmer has properly cleaned up their object references.

>This has passed unnoticed almost two months ago:
>
>x=create("dummy")
>y=x
>x.releasereference
>?type("x"), type("y")
>?isnull(x), isnull(y)
>
>define class dummy as custom
>
>procedure releasereference
>Local ai[1]
>local i,n, lcExternalVar
>n=ainstance(ai, this.class)
>for i=1 to n
> lcExternalVar=ai[i]
> if compobj(eval(lcExternalVar), this)
> release (lcExternalVar)
> endif
>endfor
>endproc
>enddefine
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform