NO

Author Topic: Is it normal that my 25KB exe would use 1.8MB of memory?  (Read 2660 times)

x79

  • Guest
Is it normal that my 25KB exe would use 1.8MB of memory?
« on: March 23, 2015, 06:40:41 AM »
Not that I'm really worried about this little bit of memory, I just want to be sure that it's normal.

Offline DMac

  • Member
  • *
  • Posts: 272
Re: Is it normal that my 25KB exe would use 1.8MB of memory?
« Reply #1 on: March 23, 2015, 07:18:04 PM »
It is probably because you are calling ShellExecuteEx().  It seems to initialize the shell class which is used in every shell function.  You will also notice this kind of memory usage when you call GetOpenFilename() for a file browser.  I have found that memory allocation related to shell functions slowly decrease over time if the calling application sits idle.
No one cares how much you know,
until they know how much you care.

x79

  • Guest
Re: Is it normal that my 25KB exe would use 1.8MB of memory?
« Reply #2 on: March 24, 2015, 12:36:11 AM »
ahhh, ok.
I have found that memory allocation related to shell functions slowly decrease over time if the calling application sits idle.

I noticed the same thing. Thx for putting my mind at ease.