Question: I run a Delphi application from the IDE (Run without Debugging) and then run it by by clicking the executable from Win Explorer. There is consistently, a 25% difference (10 Mbs) in the memory reported in the Task Manager. Any idea what might explain this difference? (no run parameters specified in Delphi).

Question: I run a Delphi application from the IDE (Run without Debugging) and then run it by by clicking the executable from Win Explorer. There is consistently, a 25% difference (10 Mbs) in the memory reported in the Task Manager. Any idea what might explain this difference? (no run parameters specified in Delphi).

And an observation. VS code with just a couple of small text files loaded has roughly the same memory footprint as the Delphi IDE with a large project addines etc. loaded!

Comments

  1. Kiriakos Vlahos I'm sure you will be able to elicit all sorts of guesses. But if you want any certainty I'm sure you'll need to do some debugging.

    ReplyDelete
  2. Kiriakos Vlahos Windows Task Manager is a very poor source of this information. Use SysInternals Process Explorer, available for free from Microsoft - it will give you a lot more details.

    ReplyDelete
  3. I found the answer. If you overwrite the DPI scaling of the IDE, programs that you run from the IDE inherit that new DPI scaling whatever their manifest file may say. In my case this explains the difference in memory consumption.

    ReplyDelete

Post a Comment