LarsJ Posted February 20, 2013 Posted February 20, 2013 (edited) I have testet the code in the first post on my XP SP3 and AutoIt 3.3.8.1 and watched the memory usage in Windows Task Manager. The first many loops it allocates 4K of extra memory for each loop. After some time it only allocates extra 4K after several loops. Right now it's at 5.860 K. And it hasn't allocated any memory the last 30 minutes, that's about 120 loops. When I have watched memory usage of some of my scripts with code like this, it seems to be normal behavior. In the start they allocates memory. After some time they don't allocate more memory. If you code this program in C/C++ I'm pretty sure you'll see the same memory usage. I'll leave the script running and report the memory usage later tonight. The 5.860 K was at 19:15 danish time. After 40 minutes still 5.860 K. It's now 23:30. The memory usage is 5.912 K. That's 52 K extra allocated in 4 hours and 15 minutes. I would not call that a memory leak. If it was a memory leak I would have expected a more continuous and persistent memory consumption. Edited February 20, 2013 by LarsJ Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
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