When I create a simple application like:
[pascal]program SmallApp;
function MessageBoxA(HWND: Cardinal; Msg,Title: pChar; Flags: Cardinal): Cardinal; stdcall; external 'User32.dll';
begin
MessageBoxA(0,'Hello from small app.','Small App',0);
end;[/pascal]
The executable is 6 kb, which is fine... But when I run the program, why an earth is takes 3 MB ram? This is as much as full VCL apllication uses when one form is created. For example Notepad takes only about 70 kb memory. Is there any way I can reduce memory usage?
Bookmarks