Ayres Posted May 28, 2005 Share Posted May 28, 2005 I created a program with 136 KBytes (file.exe) that is resident in memory and same using few variables it is occupying 4280 KBytes of memory. Why it will be? Link to comment Share on other sites More sharing options...
FuryCell Posted May 28, 2005 Share Posted May 28, 2005 I created a program with 136 KBytes (file.exe) that is resident in memory and same using few variables it is occupying 4280 KBytes of memory. Why it will be?<{POST_SNAPBACK}>AFAIK this is a limitation of Autoit. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Ayres Posted May 28, 2005 Author Share Posted May 28, 2005 AFAIK this is a limitation of Autoit. <{POST_SNAPBACK}>AFAIK? What is this? Link to comment Share on other sites More sharing options...
PerryRaptor Posted May 28, 2005 Share Posted May 28, 2005 As-Far-As-I-Know Link to comment Share on other sites More sharing options...
jpm Posted May 30, 2005 Share Posted May 30, 2005 I created a program with 136 KBytes (file.exe) that is resident in memory and same using few variables it is occupying 4280 KBytes of memory. Why it will be?<{POST_SNAPBACK}>The 136k bytes is the size of the program on the disk which is compressed. But as soon it is loaded in memory more things happen to have it in execution. The decompression first and all memory to have the program running which are allocated when the program start.So as AutoIt need to have a lot of Windows Function working extra memory are needed.It does not surprised me that 4280 will be allocated to have a script running. Link to comment Share on other sites More sharing options...
Ayres Posted May 30, 2005 Author Share Posted May 30, 2005 The 136k bytes is the size of the program on the disk which is compressed. But as soon it is loaded in memory more things happen to have it in execution. The decompression first and all memory to have the program running which are allocated when the program start.So as AutoIt need to have a lot of Windows Function working extra memory are needed.It does not surprised me that 4280 will be allocated to have a script running.<{POST_SNAPBACK}>Thanks ! Link to comment Share on other sites More sharing options...
Ayres Posted May 30, 2005 Author Share Posted May 30, 2005 As-Far-As-I-Know<{POST_SNAPBACK}>Thanks ! Link to comment Share on other sites More sharing options...
therion Posted May 31, 2005 Share Posted May 31, 2005 (edited) ive noticed though that if you minimize the program and then maximize it the memory usage is lower.i put this in my code just for this plus it gives it a nice effect when you open the program.Try it.Whether its the right thing to do i dont know but it does reduce the memory usage. GUISetState(@SW_SHOWMINIMIZED) Sleep(1000) GUISetState() Edited May 31, 2005 by therion Link to comment Share on other sites More sharing options...
jpm Posted May 31, 2005 Share Posted May 31, 2005 ive noticed though that if you minimize the program and then maximize itthe memory usage is lower.i put this in my code just for this plus it gives ita nice effect when you open the program.Try it.Whether its the right thingto do i dont know but it does reduce the memory usage.GUISetState(@SW_SHOWMINIMIZED) Sleep(1000) GUISetState()<{POST_SNAPBACK}>Strange the memory if needed should be allocated to at least a program. I will vote for Windows bad reporting of the allocated memory. Link to comment Share on other sites More sharing options...
Valik Posted May 31, 2005 Share Posted May 31, 2005 Strange the memory if needed should be allocated to at least a program. I will vote for Windows bad reporting of the allocated memory.<{POST_SNAPBACK}>Its not bad reporting, its Window's behavior. When a GUI is minimized in Window's, the OS internally calls SetProcessWorkingSetSize(). This trims currently unused memory pages. When restoring the GUI, some new pages are added but there will usually be a decrease in the total compared to before the minimize. Its possible to manually call SetProcessWorkingSetSize() to trim memory at any point.With that said, to those who think AutoIt is using a lot of memory... well, don't ever open IE, Firefox, Photoshop, Visual Studio, VMware, or about a million other pieces of software which use massive amounts of memory (dozens of MB at least). Link to comment Share on other sites More sharing options...
Blue_Drache Posted May 31, 2005 Share Posted May 31, 2005 With that said, to those who think AutoIt is using a lot of memory... well, don't ever open IE, Firefox, Photoshop, Visual Studio, VMware, or about a million other pieces of software which use massive amounts of memory (dozens of MB at least).<{POST_SNAPBACK}>See attached screenshot for a perfect example. Firefox has 5 open web pages and is using a whopping 32 MB of memory. Not shown is Winamp, using 14 MB, Paperless Inventory (a work function we use here, developed in house with VB 6.0) weighs in rather heavy too. That all said, the top five (on my system) are:1. Firefox @ 322. Rtvscan @ 223. IE @ 194. MAINRDW @ 165. Winamp @ 16 (combined Winamp @ 14 and the Winamp agent @ 2)YMMV Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now