13ouncer Posted August 20, 2011 Share Posted August 20, 2011 If I made a script to read a memory address and return the value, should I "ALWAYS" close the memory after accessing it even if I am going to access it again in a second or so, or do I keep it open until I am done with it? I tried searching for a topic like this, but no luck ^^ Link to comment Share on other sites More sharing options...
JohnOne Posted August 20, 2011 Share Posted August 20, 2011 Keep it open until you are done with it I'd say. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
FaridAgl Posted August 20, 2011 Share Posted August 20, 2011 can we never close it? any problem? http://faridaghili.ir Link to comment Share on other sites More sharing options...
13ouncer Posted August 20, 2011 Author Share Posted August 20, 2011 I have heard rumors that it causes some sort of overflow if you are opening/closing memory within a short amount of time (1/2 second-1 second). It makes sense that it would 'overflow' because you are constantly calling on a DLL within a short amount of time. I think of it like clicking on a file a hundred times in 10 seconds, it would cause the system to hang in most cases. I figured leaving it open was the best option until I am done with it. I am using 'nomadsmemory' btw. Link to comment Share on other sites More sharing options...
Shaggi Posted August 20, 2011 Share Posted August 20, 2011 Keep it open until you close the program or so. The problem isn't "calling" a dll, but more that you are constantly polling a time costing function. Remember to explicitly close the handle though, else you create a handle leak. Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG 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