Zitat von
Khabarakh:
There's no such thing as a memory leak in a (fully managed) .Net application. If you're experiencing some memory issues, could you describe them?
Whenever you have created, say, 20 new objects (i.e. generation 0 is full) since the last garbage collection, the garbage collector will reclaim any unreferenced objects (slightly simplified). The only thing you can do to help the GC is to dispose every IDisposable object as soon as you don't need it anymore.
mmm ok, so if i do the following:
Delphi-Quellcode:
procedure TForm3.FormCreate(Sender: TObject);
begin
oConn := TADOConnection.Create(nil);
end
in a
VCL.NET Application, then that object will automaticly be disposed? So there is no need to FeeAndNil(oConn)?
Thanks