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:
l1_cclient = ""
l1_cphone = ""
l1_ntotal = 0
l2_cclient = ""
l2_cphone = ""
l2_ntotal = 0
l3_cclient = ""
l3_cphone = ""
l3_ntotal = 0
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