>
>So my question is, is there any way to reduce footprint in memory?
>It feels strange that the real app in VB that needs the VB runtime
>libraries takes less memory then an empty Delphi app.

Not a solution, but if you want to monitor memory use, try something like this:

const  SHeapAllocated = '%s bytes allocated';

procedure TForm1.Timer1Timer(Sender: TObject);
var
   HS: THeapStatus;
begin
   HS := GetHeapStatus;
   Label2.Caption := Format(SHeapAllocated, [FloatToStrF(HS.TotalAllocated, 
ffNumber, 10, 0)]);
end;

regards
ian




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to