I searched through the forums and I didn't find anything except one to tell either the global memory usage or the CPU usage.

Well, I heard that this is difficult to do in Visual Basic, but I am searching to get the individual amount of memory used by a process, which is then displayed in a caption.

Then, the process's memory is re-read and if the change in the memory usage is over...say...1000 or whatnot the process is terminated.

I've got the main parts of it down, but I'm having a difficult time figuring out how to get the amount of memory just one single process is using.


For an example, say you have a list which lists all the process currently active on your computer. You click on a process, and it shows you how much memory it is currently using (like in the task manager) - then it re-reads this after a while and writes the new memory usage. If the difference between the new and the old memory usages is greater than a certain number, just kill off the process.

But, I can't just figure out how to do it! Mind you, compared to most people here, I'm a newbie. ^_^


Thanks in advance, and remember, Darkness is your friend! =D