Just to test, I ran this code
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
int main() {
int **ar = (int**) malloc(100000000* sizeof(int*));
int i;
for(i = 0; i<10000000; i++) {
ar[i] = (int*) malloc(1000 * 4);
ar[i][123] = 456;
}
usleep(3000000); usleep(3000000);
usleep(3000000); us...
Registers are the fastest memories in a computer. So if we want to build a computer with just registers and not even caches is it possible? I think of even replacing the magnetic discs with registers although they are naturally volatile memories. Do we have some nonvolatile registers for that use? It would become so fast! I'm just wonder...
Ah I'm desperate, I so help someone can help me out!
I have a domain: example.com. There are various WP installations for different languages, e.g. /en/, /fr/. I have duplicated the English language /en/ to make these other foreign language installations. The original /en/ installation still works great.
The other installations work o...
I am trying to write to the memory of another process, I open it with permission 38h (VM_OPERATION, VM_READ, VM_WRITE), then i use VirtualProtectEx with permission 4h(PAGE_READWRITE), but i also tried PAGE_EXECUTEREADWRITE - same error later.
Then I invoke ReadProcessMemory, and successfully read out the value of a fix address.
But as I...
So, my app is a set of stacked views, with a RootViewController as the 2nd view on the stack. The bottom-most view is a menu page, which loads either the rootview controller or an info view onto the stack, and from the rootview controller theres several more views.
When I receive a low memory warning, my app does fine unless I try to p...
In C# if i use the following code
Dictionary<int,object> dictionary = new Dictionary<int, object>();
dictionary.Add(1,null);
dictionary.Add(2,new object());
dictionary[2] = null;
How much memory is being allocated?
does each object reference in the dictionary (dictionary[1], dictionary[2]) takes a pointer size (32 or 64 bit) on the he...
Hi,
When I try to open a dialog in a worker thread, the
dialog opens and then the whole application crashes.
It is an android app.
I get the following error (i cant post the image
because i have less then 10 points :(()
Any help will be appreciated :)
Best Regards
...
Hello
I can specify the maximum amount of memory used by R or by an object in R with parameters such as
--max-mem-size=1400M
at command line.
But how can I use it with Revolution Analytics?
I've tried but it seems not no accept any parameter.
I've also tried to look for configuration files, unsuccesfully.
...
Hello
For NSString, we can use
NSString *str = [[NSString alloc] initWithString:@"hi"]
NSString *str = [NSString stringWithString:@"hi"];
NSString *str = @"hi";
Can someone pls told me in the form of point 3, whether str own @"hi"? I mean whether I need to [str release] when clean up?
Thanks
for point 1, yes, I need; for point 2...
We have a collection of objects which grows quite large over time. We have implemented a caching strategy to help alleviate this, however we are still running out of Heap Space at run time - if enough memory isn't allocated at startup.
Is there a standard mechanism to reduce the size of this cache at runtime to remove these OutOFMemory...
I've two files of 1 GB each containing only numbers in sorted order. Now I know how to read the contents of the files and sort them using merge sort algorithm and output it into an another file but what I'm interested is to how to do this only using 100MB buffer size (I do not worry about the scratch space). For example one way is to rea...
hi,
I just to want to get an idea about how the register variables are handled in C program executables. ie in which location(or register) it exactly get stored in case of an embedded system and in a X86 machine(C program executable in a desktop PC)?
What about this view? (correct me if am wrong)
Suppose we have declared/initialized o...
Hello,
I have an application here that has a feature of showing a POI on the map. It's only one POI and it is only drawn when it's actually within the visible screen area. It works perfectly for a while but if I play around zooming in and out and dragging, it will eventually crash. According to Logcat, the reason is always an OutOfMemor...
In our application, we are reading an XPS file using the System.IO.Packaging.Package class. When we read from a stream of a PackagePart, we can see from the Task Manager that the application's memory consumption rises. However, when the reading is done, the memory consumption doesn't fall back to what it was before reading from the strea...
Hello
I work on a WPF application that has multiple canvases and lots of buttons. The user cand load images to change the button background.
This is the code where I load the image in the BitmapImage object
bmp = new BitmapImage();
bmp.BeginInit();
bmp.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
bmp.CacheOption = BitmapCache...
Hi Guys,
I'm not in a position to make out the difference between vld4_f32 and vld4q_f32 in ARM NEON instructions.
The confusion started when I raised my coding levels and started looking at the assembly instructions rather than the less informative intrinsics.
The reason I need to use vld4 variant instruction here is because, I would...
I use sIEve to find out why memory usage grows.
"inUse" columns has no big changes.
Why does memory usage grow?
What can affect the growth of memory usage than the number of DOM elements?
Thank you!
...
While debugging on Windows XP 32-bit using the immunity debugger, I see the following on the stack:
_Address_ -Value_
00ff2254 ff090045
00ff2258 00000002
My understanding is that every address location contains 8 bits.
Is this correct?
...
Memory is an issue for iphone ipad app, especially for ipad, if one wants to do something big.
Well, these two snippets of codes can 1. get current available memory of the device; 2. force free memory.
Can we use it in the app? Will app store allow?
thanks
#import <mach/mach.h>
#import <mach/mach_host.h>
static void print_free_memo...
Hello all
iOs will give memory warning (level 1, 2, ...) for the apps.
Can I change the level criterial?
I mean for e.g., level 1 = 20 mb left, level 2 = 2 mb left.
I can tell iOs level 1 = 50 mb left?
thanks
...