I was playing a flash game when a friend of mine showed me some Cheat Engine trick where you can search for integers in a flash game. eg your score is 100. To find the score, you'll need to search for the value 800 in Cheat Engine—this is probably a popular trick nowadays.
I've never played with Cheat Engine before, but I understand tha...
I have a pointer in GDB, how can I find out where it was first allocated on the heap?
In WinDBG, this can be done by !heap -p -a <0x12345678> after turning on gflags /i <*exe> +ust
Since Valgrind can tell me where the memory is allocated (when it detects some leaks), I guess this is also possible?
(This is NOT about watchpoint. This i...
Hello All,
I have been a dabbling into delphi off and on for years and I have always wondered why does minimizing and restoring an application cause it to use less memory ?
As an example I am using delphi 7 and I create a new project with nothing on it but the blank form all projects start out with and then I press F9 to run the applic...
I have a few time-consuming and (potentially) memory-intensive functions in my LAMP web application. Most of these functions will be executed every minute via cron (in some cases, the cron job will execute multiple instances of these functions).
Since memory is finite, I don't want to run into issues where I am trying to execute a funct...
Let's say I have an object that has other objects in it. For example an NSMutableArray object "list" that has a few other objects.
If I no longer use any of them, can I just type [list release]?
Or do I have to release the objects in the list 1 by 1? ie.
for (int i=0; i < [list count]; i++)
[[list objectAtIndex(i)] release];
If...
I am using R on some relatively big data and am hitting some memory issues. This is on Linux. I have significantly less data than the available memory on the system so it's an issue of managing transient allocation.
When I run gc(), I get the following listing
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 21471...
From what I know, back in the days of 16bit PC's we had the Segment registers contain the address of each type of segment and you could access an offset with something like this SS:[EDI], this would take the value contained in EDI as an offset to the Stack Segment.
Now I know that in 32bit systems, we have the GDT (Global Descriptor Ta...
Same problem as this guy
I'm trying to use CGBitmapContextCreateImage() or UIGraphicsGetImageFromCurrentContext(), but they leak badly, even if I don't do anything in the context. When I run this in a UIView subclass, before setNeedsDisplay:
UIGraphicsBeginImageContext(CGSizeMake(320, 264));
// Optional drawing code here, but still lea...
What's the minimum memory needed to run a RAR decompression algorithm?
I want to port a RAR decompression algorithm to mobiles (iPhone, Android and BlackBerry) and want to know if there's a bare minimum of memory needed before starting. I've heard that RAR decompression requires much more memory than ZIP decompression.
...
One would think it would be easy to find a table that lists the default maximum heap sizes for the different JVM versions...but a quick search didn't find such a thing.
So, what are the default maximum heap sizes for the various Sun JVM's?
...
Suppose I write my code very defensively and always check the return types from all the functions that I call.
So I go like:
char* function() {
char* mem = get_memory(100); // first allocation
if (!mem) return NULL;
struct binder* b = get_binder('regular binder'); // second allocation
if (!b) {
free(mem);
...
So my application allows for users to upload video, convert it using FFMPEG and then transfer it over to the Flash Media Server. Lately, I've run into an issue.
If ever there is an error when converting video, I automatically generate cfcatch report PDF. This time I came across a "Cannot allocate memory" error. This massively concerns m...
I have 5 UIimageViews which display .png files, each max 200kb, but ImageIO allocates around and average of 1.3 mb for each. totaling 7.3 mb for the view when loaded.
What is causing this to happen?
I have another class with same amount of images and that allocates only 2 mb max.
...
I have an application that needs to be unplugged from the computer to use (it is interfacing with a device through the port) so I don't think using Instruments will work. Is there any way to monitor memory allocations/leaks without the iPhone being attached to the computer? Thanks.
...
I searched StackOverflow but couldn't find the answer to this question.
Suppose I have a std::vector<Day *> vector_day - that is - a vector of pointers to Day object. Now I push_back to vector_day many elements:
vector_day.push_back(new Day(12));
vector_day.push_back(new Day(99));
vector_day.push_back(new Day(71));
...
Now at some po...
I am facing today with a problem where I need to change memory to a certain pattern like 0x11223344, so that the whole memory looks like (in hex):
1122334411223344112233441122334411223344112233441122334411223344...
I can't figure out how to do it with memset() because it takes only a single byte, not 4 bytes.
Any ideas?
Thanks, Boda...
When I build my application statically, it comes out to just over 5Mb, so it's a small, simple program. However, any system that has under 3Gb of ram can't run the program, saying there's not enough memory. There is nothing very memory intensive in the program, and I did nothing to allocate memory specifically. Any thoughts on whats caus...
I've got a command line script that is running an array() of files through a loop, and using the file name as an argument to call a method on a helper object.
Each run through the script, PHP's memory_get_usage reports a larger and larger number
53294264
57019624
61374624
65699176
70230600
75157152
79900392
84630472
89359264
94300016
1...
Hi all, I have written my jsp using <display:table> to display search results. The <display:table> requires a javabean list to be passed in as an argument. Currently a controller will build the list, then the jsp displays it.
My concern is that what happen if 1000 users perform search at a time. That means all results will need to be l...
We are putting together a platform that can supposedly load any jar file and run statistical models. The issue im facing right now is that some models run too big to fit on our platform causing heap out of memory errors. I know there has been research done on this but I cant find them anymore. In essence, how does google app engine do...