I've just written some threaded code which handles huge objects. Even when I clean up everything from an object (without deleting it), it keep eating GBs of RAM. FYI, I reproduced the issue in a smaller environment.
This code creates a structure and an object containing a vector of pointers to the structure. Then I fill the object with ...
Hi,
I recently changed my app to use a UINavigationController, I was using a UINavigationBar before, with cascade subView adding, which was a bit tenuous.
I'm facing a problem of memory usage. Leaks tool doesn't show any leak, but ViewControllers I create and add to the UINavigationController never seem to be released. So memory usage ...
How can I store a large float value, like 0.00032012 in the app?? I need to store that number, so when someone click a save preferences button, it stores a variable. Then when I relaunch the app, it will remember that number and post it in a text field.
I was thinking of using plist, but how can I store variables in the plist??? Exampl...
I would like to limit the amount of physical memory a process can use without limiting the amount of virtual memory it can use. I am doing this in an effort to measure the behavior of various algorithms under memory pressure, and I need to test their performance with many different amounts of physical memory available - so I either need...
I have been running into errors where objects are somehow freed but we end up calling FreeMem on them. Of course this causes an error since the memory has already been freed and throws an error.
I know that a try-catch block would probably fix it but that's a lot of try-catch blocks. With the regular object.free the way to avoid this ...
How does an optimizing c++ compiler determine when a stack slot of a function(part of stack frame of a function) is no longer needed by that function, so it can reuse its memory? .
By stack slot I mean a part of stack frame of a function, not necessarily a whole stack frame of a function and an example to clarify the matter is, suppose w...
Hello,
I can readily dump the entire memory space of a process using various tools.
But is it possible to dump just the memory space used by a DLL loaded by some process? What tools should I use?
Thanks,
Jim
...
With my new client which is linked with an IP Board forum. Once they log into the client the people who donated or bought VIP on my forums will have access to all my applications I have made. It will most likely show a list of all my applications in a listbox/listview.
I currently do not have the code to be able to do this nor do I know...
Hi, I have a code that changes the function that would be called, to my new function, but I don't want to call only my new function, I also want to call the old one.
This is an example, so you can understand what I'm saying:
If I disassemble my .exe, I will look at this part:
L00123456:
mov eax, [L00654321] //doesn't matter
...
Hey All,
I'm using Slackware 12.2 on an x86 machine. I'm trying to debug/figure out things by dumping specific parts of memory. Unfortunately my knowledge on the Linux kernel is quite limited to what I need for programming/pentesting.
So here's my question: Is there a way to access any point in memory? I tried doing this with a char p...
Does the android simulator use the same amount of memory as the real device?
For example if my app doesn't run out of memory on a simulator, does it mean that it doesn't run out of memory on an actual device?
...
how much ram needs mongo in comparison with MySQL?
...
Hi,
I am fairly new with concurrent programming and I am learning it.
I am implementing a quick sort in Java JDK 7 (Fork Join API) to sort a list of objects (100K).
While using this recursive piece of code without using concurrency,i observe no memory explosion, everything is fine.
I just added the code to use it on multi cores (by ...
Possible Duplicate:
Growable data structure in MATLAB
So in my current MATLAB script, I have a very large indeterminate-sized growing array. There is currently nothing I can do about it, because if I actually preallocate, it would take many many many times more memory than it should need (maximum possible amount of values is 6...
I am using C++, and would like to get the permission to execute on an area of memory. Is there a way I can do this? Right now when I just try to execute it, I get an access violation error.
...
I am running a Perl server with 10 threads. They never get destroyed until the program exits, but this is something I intend to have as much uptime as possible, so that's why this is an issue for me. The threads handle a simple task many times. When I start the server and all the threads are started, I see that I have 288.30 MB free. Aft...
I created a class Foo that has the method toArray() that returns an Array<Int>.
Now, I have a HashMap mapping Strings to HashMaps, which map Objects to Foo. That is:
HashMap<String,HashMap<Object,Foo>>
And I want to create a new object of type:
HashMap<String,HashMap<Object,Array<Int>>>
That is obtained by calling the function toA...
Possible Duplicate:
C programming, why does this large array declaration produce a segmentation fault?
This is my first time here so sorry if I break some rules or if this has been answered before.
I recently made a C program in which I had a matrix of
char buff[NR][1024*1024];
I needed NR = 128. So the program would alocat...
Possible Duplicate:
Are there binary memory streams in C++
Oops - http://stackoverflow.com/questions/1559254/are-there-binary-memory-streams-in-c
...
On a system monitoring project, I am retrieving process memory usage through WMI.
I am using Jacob with Java to do the WMI query:
SELECT WorkingSetSize FROM Win32_Process
This method retrieves the exact memory usage (comparing to task manager) on Windows XP; however on Windows Vista, the memory usage is about 15% higher than the mem...