Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory management
Message
From
24/09/2003 11:13:41
 
 
To
24/09/2003 10:53:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831853
Message ID:
00831862
Views:
19
Hello Pablo;

>I have an aplication that calls .app programs.
>After using the main program and calling and exiting the "child" .app aplications
>the systems becomes more slow and the memory starts to decrease.
>All the code is 100% VFox.

>
>I want to use release Command to release (not just erase) the variables.
>If I do a release all extended will destroy the variables that I
>need for the Main application. And a big c00005 will appear, of course.

>
>So I need to track all variables used, to release them manually.
>Because it seems that somethings are retained in memory. Even if the Form is destroyed.
>
>What command may I use? To manage memory in this way. Cleaning constantly memory.
>
You can create your variables with specific names for each level of your code.. i.e:
* my first level
l1_cclient = ""
l1_cphone  = ""
l1_ntotal  = 0
* my second level
l2_cclient = ""
l2_cphone  = ""
l2_ntotal  = 0
* my third level
l3_cclient = ""
l3_cphone  = ""
l3_ntotal  = 0
*
* cleaning up my first level variables
*
RELEASE ALL LIKE l1*
HTH


Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform