Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing procedure
Message
De
21/09/2010 10:13:26
 
 
À
21/09/2010 09:04:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01482115
Message ID:
01482152
Vues:
53
Make sure to release all references to the class.

>I tried with execscript but I got an error, i think it does not work when defining classes.
>
>>>I don't know why but I'm trying to define a class on the fly.
>>>To do that I put the code on in a string, transform this string in a file.prg than compile it and add it to my procedures
>>>
>>>
>>>lcString = myDefineCode
>>>=strtofile(lcstring,MyFlyProc,0)
>>>lcMemSet = set('procedures')
>>>compile MyFlyProc
>>>set procedure to MyFlyProc additive
>>>
>>>* excute my code which refers to defined object
>>>release procedure MyflyProc
>>>set procedure to (lcMemSet)
>>>*
>>>erase MyflyProc
>>>
>>>
>>>
>>>Well I cannot erase that file as it tells me that outstanding references exist. How can I kill those references
>>>
>>>Thank you
>>>Alessio
>>>
>>>By the way, if there are better methods to do that...fell free to suggest them to me :)
>>
>>You can try using EXECSCRIPT. You may also try to RELEASE CLASS ClassDefinedInTempPrg first.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform