Hey, I have a memory leak problem. My application has to run different programs. For example, when the user has to run Notepad, he just clicks on the button on my program and my program runs Notepad... Simple and straightforward. The problem is that the user might have to run Notedpad several times throughout the day, and when you look at the memory usage for my program on Task Manager, the size increases every time the user decides to run Notepad (even though he closes it after he's through using it). My question is: how would I release the memory used by my program for Notepad when the user closes Notepad? I need this so that I could keep the same memory usage, cause if the user decides to run Notepad 100 times, and then close all of those, that's a whole lotta memory used up for nothing...
I would really appreciate any help,
Thank you