DELPHI-Man32 Posted February 25, 2004 Report Share Posted February 25, 2004 os iniciantes em DELPHI sofrem muito quando os forms não saem da memoria quando eles são fechados!heis aqui uma ótima forma de tirar o forma da memória!ao invés de chamar o form assim:formXX.show;useFormXX := TFormXX.create ( application );tryFormXX.ShowModalfinallyFormXX.Release;FormXX := nil;end;pronto!Fonte: clubedelphi.com.br Quote Link to comment Share on other sites More sharing options...
0 Edson Vasconcelos Posted May 7, 2015 Report Share Posted May 7, 2015 e se eu usar só assim tá correto? FormXX := TFormXX.create ( application );try FormXX.ShowModalfinally FreeAndNil(FormXX); end; Quote Link to comment Share on other sites More sharing options...
Question
DELPHI-Man32
os iniciantes em DELPHI sofrem muito quando os forms não saem da memoria quando eles são fechados!
heis aqui uma ótima forma de tirar o forma da memória!
ao invés de chamar o form assim:
formXX.show;
use
FormXX := TFormXX.create ( application );
try
FormXX.ShowModal
finally
FormXX.Release;
FormXX := nil;
end;
pronto!
Fonte: clubedelphi.com.br
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.