Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing procedure
Message
From
21/09/2010 09:10:06
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01482115
Message ID:
01482134
Views:
58
Nothing to do, I tried with that but I get always the same error :(


>You can try to add
>
>CLEAR PROGRAM
>CLEAR CLASS ...
>
>
>In order to provide alternative you have to give more info on why you need to create a class on fly
>
>>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 :)
Previous
Reply
Map
View

Click here to load this message in the networking platform