Pelles C forum

C language => Beginner questions => Topic started by: x79 on March 23, 2015, 06:40:41 AM

Title: Is it normal that my 25KB exe would use 1.8MB of memory?
Post by: x79 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.
Title: Re: Is it normal that my 25KB exe would use 1.8MB of memory?
Post by: DMac 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.
Title: Re: Is it normal that my 25KB exe would use 1.8MB of memory?
Post by: x79 on March 24, 2015, 12:36:11 AM
ahhh, ok.
Quote from: DMac on March 23, 2015, 07:18:04 PMI 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.