dejhost Posted April 7, 2021 Posted April 7, 2021 My AutoIT script (v3.3.14.5) aborts unexpectedly after some minutes, showing me this window: Now, I am trying to identify the reason. At first, I suspected a memory issue. My script reads the first line of a long text-file, does what it's supposed to do, before reading the next line. Since the memory-usage increased with each loop, I inserted the function _ReduceMemory() from , and the memory usage of my script stays now low and steady. So I don't think that memory limitations are the reason. Have you seen this window before? Any idea for what I should search?
dejhost Posted April 7, 2021 Author Posted April 7, 2021 As mentioned, the script processes lines of a textfile. In total, it's 480 lines (it will be many more in the future). The script aborts at line 380. If I process 100 lines at a time (so line 1-100, then 100-200 and so on), all lines are processed without any issues.
Musashi Posted April 7, 2021 Posted April 7, 2021 33 minutes ago, dejhost said: Any idea for what I should search? Any idea how to help someone, who does not provide his script ? "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
dejhost Posted April 7, 2021 Author Posted April 7, 2021 11 minutes ago, Musashi said: Any idea how to help someone, who does not provide his script ? I see your point... I was almost expecting it. Find the script attached. But I believe that it'll be a tough job. json6xml.au3
Nine Posted April 7, 2021 Posted April 7, 2021 (edited) At first glance, you do not dispose image in calc_new_image_dims. Then I stopped looking, you will need to check that you are disposing all elements correctly through out the script. Remove _Reduce_memory to see if that solves your memory leak... Edited April 7, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
dejhost Posted April 7, 2021 Author Posted April 7, 2021 @Nine: thank you so much. I disposed 2 images...and voila: works like a charm!
Nine Posted April 7, 2021 Posted April 7, 2021 4 hours ago, dejhost said: But I believe that it'll be a tough job. Not at all ! dejhost 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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