How do I get the amount of storage room left on the iPhone? I need to be able to ge the info that you can get with appbox pro, ie. space used, space available, space total, all in GB.
How can I access it in-app without the use of private APIs? Thanks
...
If the page size for a process is 4096 bytes what should be its page table size that it keeps for mapping virtual addresses to physical storage?
...
Hey Guys,
Now it's time for me to ask a question. Until now I just ignored that Memory Leak. But now it's to find out which object leads to this leak.
I have the following code:
NSDictionary *addressDic = [[NSDictionary alloc] initWithDictionary:[NSPropertyListSerialization propertyListFromData:plistData mutabilityOption:NSPropertyLi...
Hello,
I have a very basic ajax slideshow on my website. On every scroll, the new images and response content continually increase the amount of memory used by the browser.
I've done my research and tried all suggestions to reset the XHR object on each new request, but this does absolutely nothing to help.
The slideshows are basic bu...
I have a java applet that loads up a scroll view that you can add several thousand views to, everything works fine. If I close that browser window and open a new window and view my applet again and start adding views it eventually runs out of memory. It seems like garbage collection didn't occur when I closed the window before:
a: why...
I have to work with two C programs that communicate via a file-based interface. That is, each of them has a main loop where it polls three or four files (fopen, fscanf), reacts to what it reads and eventually makes its own changes to the files (fprintf) for the other process to read.
Now I have to condense these two programs into a sing...
We have production Tomcat (6.0.18) server which runs with the following settings:
-server -Xms7000M -Xmx7000M -Xss128k -XX:+UseFastAccessorMethods
-XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote.port=7009
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false -verbose:gc -XX:+PrintGC...
Hi guys,
I need to call properties and functions of an object from a different class.
The idea is passing 'this' as a parameter to the other class constructor. E.g.:
instance = ClassName(this);
And then do:
ParentClass parentInstance;
ClassName::ClassName(MainApp _instance){
parentInstance = _instance;
}
However, my compiler ...
I have an app in the appstore which worked well on ALL iDevices (including 128MB RAM)
then i added some features, and now the app crashes on 128MB iDevices.
i checked for leaks and fixed them.
the memory usage of previous version and current version is the same.
i have been searching for the problem for literally days and can't find ...
I'm having a problems uploading images and keep getting the same error message.
I've googled the issues and have found some "fixes" but they don't seem to be doing anything.
I've tried adding a custom php.ini file
Adding ini_set('memory_limit' ... in the file that throws the error
The site is being hosted by Netfirm (which has been pa...
Hi
Can anyone tell me what I am doing wrong in the following few lines?
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
documentsDirectory = [documentsDirectory stringByAppendingPathComponent:@"Immobilien.plist"];
...
I don't know very well about RAM and HDD architecture, or how electronics deals with chunks of memory, but this always triggered my curiosity:
Why did we choose to stop at 8 bits for the smallest element in a computer value ?
My question may look very dumb, because the answer are obvious, but I'm not very sure...
Is it because 2^3 allo...
I'm not sure how to word this exactly but I have a script that downloads an SSL certificate from a web server to check it's expiration date.
To do this, I need to download the CA certificates. Currently I write them to a temporary file in the /tmp directory and read it back later but I am sure there must be a way to do this without writ...
A page is a contiguous of block of 4 kb and so what is page file? how it is used by 32 bit processes?
...
What is the best search algo that has least worst case of execution time and is memory efficient. I'm looking for a data structure that can store lots of data within least memory possible and also is quickest to search for any item. This is for a scenario where i have few entries of form say A(name,value) pairs. and there are other entri...
In many languages you're allowed to declare a variable and use it before initializing it.
For example, in C++, you can write a snippet such as:
int x;
cout << x;
This would of course return unpredictable (well, unless you knew how your program was mapping out memory) results, but my question is, why is this behavior allowed by compil...
My app is a client what can watch videos online.
I test my app with Instruments,i selected Leaks,ObjectAlloc,Memory Monitor from library of Instruments.I find that All Allocations Live Bytes is just 9.33 MB,but it's 81 MB in Memory Monitor,told me this process use a lot of memory.And when i play a movie,the usage still comes up ,but th...
This might be a big ask, but are there any tools that let me view the virtual memory usage of my process in Linux? I am talking detailed, probably graphical view of memory, including what is going into the reserved addresses, the BSS/text/etc segments, heap, stack growth, etc, while I am stepping over the program in a debugger?
...
Hi guys,
I'm experiencing a wierd behavior in the new AVFoundation classes in the iPhone SDK.
I have a AVCaptureStillImageOutput for taking pictures, and I am setting its outputSettings to my liking. The code follows:
AVCaptureStillImageOutput *stillImageOutput = [[[AVCaptureStillImageOutput alloc] init] autorelease];
[stillImageOutp...
I tried to declare a memory pool in my class.
But the compiler shows some basic error like missing ')' before ';'
or syntax error : 'sizeof'
It works well if I used the pool as local variable but I really want to make it live with the class.
What's wrong about my usage?
Here is the class, the MAX_OBJ is a const
class CData
{
publi...