I need to know some tip for minimizing memory that my application will use (I am talking about RAM). For instance, I have this simple program :
uses Windows;
begin
Sleep(INFINITE);
end;
When I compile it with all debug options off, I get about 30K exe that use about 900 K of RAM. That is a lot. The same program compiled in VC 6 is taking about 500K. It's still a lot, but its better. I noticed that when you minimize Windows Commander (that is - my guess - written using Delphi) it's memory usage becomes between 150 and 400K opposite to 1.5MB when it is active. So, there must be some way to do this. I expect that some normal value for upper program should be bellow 500K.
Thanks.
uses Windows;
begin
Sleep(INFINITE);
end;
When I compile it with all debug options off, I get about 30K exe that use about 900 K of RAM. That is a lot. The same program compiled in VC 6 is taking about 500K. It's still a lot, but its better. I noticed that when you minimize Windows Commander (that is - my guess - written using Delphi) it's memory usage becomes between 150 and 400K opposite to 1.5MB when it is active. So, there must be some way to do this. I expect that some normal value for upper program should be bellow 500K.
Thanks.