Hey guys,
first of all, excuse me please for bad english :/
I got two problems which i could not solve with google or the german forums. That's why i decided to try it here in english and hopeful u will understand me (:
- So, first i got exactly the same problem like 'Seeker' here -> 'Cursor Flicker Edit Control', but i could not find any solution :/
- The second problem is more difficult i think. I wrote an program which works fine excepet the usage of RAM. A little story:
When i finished the code my program needed around 15MB RAM, after two days of running it was around 1,7GB. I looked up the Task-Manager -> Process -> Resource Monitors and tooko a look at AutoIt.exe. There i could find some columns like: Mirror, ProcessID, (in english the next column is called) Page Fault 8i think), and now its the important column i think (red) where i dont have an idea how its calles in english, maybe saved/vested/warranted ?
![Posted Image]()
Now i got the problem that this usage of RAM is rising up (slowly) and it shouldnt. There are two parts of my script where i could imagine the problem is there...
So my question is: Is it possible, that the function AdlibRegister maybe uses this (red marked) memory for any reasons? I mean like we can see abouve, usually this function _ReduceMemory will not be the reason for a constant rising memory, or?
The last alternativ i thought about was _SQLite_ ...ofc I'm using _SQLite_Open at the top of my script and close it on my last 2 lines of code. There the same question, Is it possible, that the function maybe uses this (red marked) memory for any reasons?
All tests without success :/
Hopeful someone of you guys can help me.
Thanks and again I'd like to excuse for bad english.
Regards.
first of all, excuse me please for bad english :/
I got two problems which i could not solve with google or the german forums. That's why i decided to try it here in english and hopeful u will understand me (:
- So, first i got exactly the same problem like 'Seeker' here -> 'Cursor Flicker Edit Control', but i could not find any solution :/
- The second problem is more difficult i think. I wrote an program which works fine excepet the usage of RAM. A little story:
When i finished the code my program needed around 15MB RAM, after two days of running it was around 1,7GB. I looked up the Task-Manager -> Process -> Resource Monitors and tooko a look at AutoIt.exe. There i could find some columns like: Mirror, ProcessID, (in english the next column is called) Page Fault 8i think), and now its the important column i think (red) where i dont have an idea how its calles in english, maybe saved/vested/warranted ?
![Posted Image](http://s1.directupload.net/images/121123/jqm8prpz.png)
Now i got the problem that this usage of RAM is rising up (slowly) and it shouldnt. There are two parts of my script where i could imagine the problem is there...
[ autoit ] ( Popup )
AdlibRegister("_clear_memory", 5000) Func _clear_memory() _ReduceMemory(@AutoItPID) EndFunc Func _ReduceMemory($i_PID = -1) If $i_PID <> -1 Then ;kernel32.dll - OpenProcess - Opens an existing local process object. Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $i_PID) ;psapi.dll - EmptyWorkingSet - Removes as many pages as possible from the working set of the specified process. Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $ai_Handle[0]) DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $ai_Handle[0]) Else ;s.o. Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1) EndIf Return $ai_Return[0] ;egal ob auskommentiert oder nicht, ändert nichts :/ EndFunc ;==>_ReduceMemory
So my question is: Is it possible, that the function AdlibRegister maybe uses this (red marked) memory for any reasons? I mean like we can see abouve, usually this function _ReduceMemory will not be the reason for a constant rising memory, or?
The last alternativ i thought about was _SQLite_ ...ofc I'm using _SQLite_Open at the top of my script and close it on my last 2 lines of code. There the same question, Is it possible, that the function maybe uses this (red marked) memory for any reasons?
All tests without success :/
Hopeful someone of you guys can help me.
Thanks and again I'd like to excuse for bad english.
Regards.