View previous topic :: View next topic |
Author |
Message |
Zhoul Master Cheater Reputation: 1
Joined: 19 Sep 2005 Posts: 394
|
Posted: Mon Sep 19, 2005 4:36 am Post subject: Major Mem leak |
|
|
Hey there...
First, let me say that I've not the time to see if this issue has been reported. If so, please remove this post.
Next, Cheat Engine is a bad a$$ tool. Not only has it helped me change games to my liking, but I've learned QUITE a lot about assembly/stacks/etc in the process. IMHO, it's stuff like this that should be taught in classrooms.
The Mem Leak:
This is a mem leak difference between 5.0 and 5.1 , so it should be pretty easy to find. I found the mem leak while attempting to do Unknown scans on floats, with Rome: Total War (which disallows all Debugger access, but can still be scanned). Eventually, after several such scans, the game would crash and I'd drop to desktop with a "Too Low on Virtual Memory" message.
I currently have 2gb of page file setup (split between two separate/physical drives).
So I closed all cheat engines and tried again, this time, watching task manager. In 5.0, when I'd start a new scan, Task Manager would show Cheat Engine releasing sometimes hundreds of megs of RAM/Swap , reducing itself back to about 5-7 meg memory in use.
After testing several times, with 5.0 and 5.1 side-by-side, I realised that each new scan in 5.1 did *not* release the previously used memory. I turned off the Undo feature, reloaded all versions and tried again. Same result.
If you would like a copy of my config file or any other information, please let me know what e-mail address to send it to.
- Zhoul
|
|
Back to top |
|
|
Leonidas Advanced Cheater Reputation: 0
Joined: 07 Mar 2005 Posts: 98
|
Posted: Mon Sep 19, 2005 4:52 am Post subject: |
|
|
Weird, I did change the memory releasing in ce 5.1 from standard to multithreaded
instead of waiting for the scan thread to free it's memory it spawns a new thread that free's the memory memory while you can already see the results and browse the memory.
Does the memory keep maxed out after a minute or 2 ?
Anyhow, I'll see if I can find the problem (perhaps the reference count didn't get to 0...)
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Mon Sep 19, 2005 12:07 pm Post subject: |
|
|
Found it and it is a small gigantic bug
the place where I resume the thread after giving it all the pointer to free was commented out so I could check some speed difference and forgot to put it back. So... it actually NEVER frees memory
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Zhoul Master Cheater Reputation: 1
Joined: 19 Sep 2005 Posts: 394
|
Posted: Mon Sep 19, 2005 1:50 pm Post subject: |
|
|
w00t!
I figured it'd be something simple like that, as we've all done something similar, more times then not.
Twas my tech teacher in high-school that stated...
"Computers aren't perfect. All they do is duplicate human error, many millions of times faster then any one of us ever could..."
|
|
Back to top |
|
|
Davethewave Expert Cheater Reputation: 0
Joined: 06 Mar 2005 Posts: 210
|
Posted: Tue Sep 20, 2005 9:06 am Post subject: |
|
|
I was wondering what that low memory message was all about
|
|
Back to top |
|
|
Zhoul Master Cheater Reputation: 1
Joined: 19 Sep 2005 Posts: 394
|
Posted: Thu Sep 22, 2005 11:01 pm Post subject: Fix release? |
|
|
Since this pretty much renders 5.1 useless (at least, to me heh) - when should we expect an update?
|
|
Back to top |
|
|
Leonidas Advanced Cheater Reputation: 0
Joined: 07 Mar 2005 Posts: 98
|
Posted: Fri Sep 23, 2005 12:02 am Post subject: |
|
|
saturday or sunday. (or get the source and remove the // in front of freethread.resume and compile )
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Sep 24, 2005 4:01 am Post subject: |
|
|
you can redownload ce to fix the problem
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Zhoul Master Cheater Reputation: 1
Joined: 19 Sep 2005 Posts: 394
|
Posted: Sun Sep 25, 2005 12:59 am Post subject: |
|
|
scribly wrote: | saturday or sunday. (or get the source and remove the // in front of freethread.resume and compile ) |
While I am indeed a coder, Delphi hasn't been a language I've tackled just yet (no, no... Assembly, C++, VB, .NET, and a dozen more have kept me busy thus far).
Thanks for the recomplie
|
|
Back to top |
|
|
|