dolphin/Source/Core/DolphinWX
DimitriPilot3 98536df915 Make sure to reserve() exactly the right amount of elements for the std::vector before filling it with CheatSearchResult's, in order to prevent automatic re-allocations.
It turns out that this (somewhat) gets rid of memory-related exceptions which used to occur (especially) during 8-bit cheat searches.  At least this is the case with my computer that has 3GB of RAM (the issue didn't seem to be caused by 100% of RAM usage, however).

Hopefully you'll be able to perform the following steps without errors now:
1. Open any game in Dolphin;
2. Go to Tools->Cheats Manager, and open the "Cheat Search" tab;
3. Preferably set the "Data Size" to 8-bit (the smaller, the more initial search results);
4. Press the "New Scan" button;
5. Use the "Unknown" search filter (which won't narrow the results down at all);
6. Press the "Next Scan" button.

(oh, and fix a typo in a comment I introduced in r6791 :p)

Anyway, make sure to tell me any eventual errors/regressions.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7596 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-06-13 15:47:02 +00:00
..
resources Merge UI related projects into the main DolphinWX project. 2011-02-11 21:37:52 +00:00
Src Make sure to reserve() exactly the right amount of elements for the std::vector before filling it with CheatSearchResult's, in order to prevent automatic re-allocations. 2011-06-13 15:47:02 +00:00
CMakeLists.txt Add graphics FIFO recorder and player for debugging the graphics system. 2011-03-27 02:55:08 +00:00
Dolphin.vcxproj - Removed RTTI support 2011-03-28 11:34:27 +00:00
Dolphin.vcxproj.filters Add graphics FIFO recorder and player for debugging the graphics system. 2011-03-27 02:55:08 +00:00
Dolphin.vcxproj.user vs2010: make -d be passed to debugfast builds launched from vs 2011-02-25 04:00:16 +00:00
DolphinWX.rc Hg: 2010-06-09 01:37:08 +00:00
resource.h set svn:eol-style=native for **.h 2008-12-08 04:46:09 +00:00
SConscript Fix scons build. 2011-03-27 09:28:51 +00:00