Jump to content
Sign in to follow this  
DraikSword

Question about _MemGlobalSize

Recommended Posts

DraikSword

Hello. I hope my question won't make you feel bored.

I run a application five times and all of them worked together. First, they worked well. However, ten minutes later some of them took a lot of memories and made my computer run slowly. (I checked Processes Tab of Windows Task Manager and saw the column Mem Usage).

Now I want to make a scipt to check how much memory that each window of my application is using and if they are more than xxx(K) they will be close, loop forever until I close all windows.

My idea is use ProcessList, _MemGlobalSize and For...to...next...step functions. However, I get sizes of the specified memory objects always = 0 so none of them will be close. Any suggestions for me?

Share this post


Link to post
Share on other sites
jvanegmond

I don't know what made you think you can use _MemGlobalSize to get the memory consumption of a process.. :)

Use this instead: http://www.autoitscript.com/forum/index.php?showtopic=70538

Share this post


Link to post
Share on other sites
DraikSword

Manadar, thank so much. My problem is solved. I'm completely new with computer programming and not good at English. That's why many times I read a document but don't understand it clearly ;) sometimes, understand in wrong way B)

Nice you meet you Manadar. Have a nice day :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×