Minimal Memory Footprint for Tray Application?

  • Thread starter Thread starter John Batdorf
  • Start date Start date
J

John Batdorf

I've created a win32 forms application to run outside of a user's
view. It creates an incon in the system tray, and monitors a mail
server for a certain message (internal application for the company) my
question is, that bare bones before I even do >anything< this
application takes close to 10MB of memory. I removed references to
System.Data, and other DLLs I don't need.

Is the framework that bloated that a simple tray app using windows
forms is going to use 10 MB of memory? That is INSANE... anyone have
ideas of something I'm doing wrong?

Thanks in advance.
 
John,

You aren't doing anything wrong. This is the price you pay for the
extras that .NET affords you. Primarily, the amount of memory consumed is
because of the managed heap. You can try and reduce this through calls to
the Win32 API function SetProcessWorkingSetSizeEx, but that is probably not
the best idea.

Hope this helps.
 
Back
Top