I'm just beginning to have a look at Objective-C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably comfortable with C's malloc
and free
concept, but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it, but I'm just not over the hump yet.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Monday, June 4, 2012
Understanding reference counting with Cocoa and Objective-C
Wednesday, May 30, 2012
Why does jquery leak memory so badly?
This is kind of a follow-up to a question I posted last week: http://stackoverflow.com/questions/2429056/simple-jquery-ajax-call-leaks-memory-in-ie
Sunday, May 27, 2012
Linux: How to measure actual memory usage of an application or process?
How do you measure the memory usage of an application or process in Linux? I've read here that "ps" is not an accurate tool to use for this intent.
Monday, May 21, 2012
How to tune Tomcat 5.5 JVM Memory settings without using the configuration program
I need to configure Tomcat memory settings as part of a larger installation, so manually configuring tomcat with the configuration app after the fact is out of the question. I thought I could just throw the JVM memory settings into the JAVA_OPTS environment variable, but I'm testing that with jconsole to see if it works and it... doesn't.
Wednesday, May 16, 2012
Memory consumption issues of a Java program
I have a Java program that runs on my Ubuntu 10.04 machine and, without any user interaction, repeatedly queries a MySQL database and then constructs img- and txt-files according to the data read from the DB. It makes tens of thousands of queries and creates tens of thousands of files.
Wednesday, May 9, 2012
Safely catch a "Allowed memory size exhausted" error in PHP
I have a gateway script that returns JSON back to the client. In the script I use set_error_handler to catch errors and still have a formatted return.
Tuesday, May 1, 2012
Instruments Leaks - Not showing my source code
I am attempting to analyze an iPhone application using the Leaks application and everything appears to be working fine, except for when I try to view detailed information about a particular memory leak. Leaks does not appear to be loading my source code. Looking at the stack view on the right, I can see calls that reference iPhone frameworks, but anything that is referencing source code that I've written is empty. The screenshot below illustrates my point. The blocks that are light blue should be referencing my source code. Has anyone ever had this problem? Is Leaks just not finding my source code/symbols correctly? Thanks!
Wednesday, April 25, 2012
How to reduce memory size of Apache CXF client stub objects?
My web service client application uses Apache CXF to generate client stubs for talking to several web services. The generated CXF web service stub objects have quite a large memory footprint (10 - 15 web service objects take more than 64 MB of memory). Is there any way to reduce the CXF object footprint?
Monday, April 23, 2012
How does PHP assign and free memory for variables?
I was wondering when does PHP free the memory which is used for a variables
Thursday, April 19, 2012
In PHP, what happens in memory when we use mysql_query
I used to fetch large amount of data using mysql_query then iterating through the result one by one to process the data. Ex:
Why does integer value take 72 bytes of memory?
Possible Duplicate:
What is the overhead of using PHP int?
Can somebody explain me, why creation of an integer in PHP, costs 72 bytes?
Tuesday, April 10, 2012
UIWebView - When (or how) does CFData get released?
after multiple days of banging my head against the wall and having sleepless nights I'm hoping to find some help here. I've gone through various posts here, but none of the answers seem to provide a resolution for me.
Thursday, April 5, 2012
Detect application heap size in Android
How do you programmatically detect the application heap size available to an Android app?
Tuesday, April 3, 2012
Detect application heap size in Android
How do you programmatically detect the application heap size available to an Android app?
Sunday, March 11, 2012
Why does java wait so long to run the garbage collector?
I am building a Java web app, using the Play! Framework . I'm hosting it on playapps.net . I have been puzzling for a while over the provided graphs of memory consumption. Here is a sample:
Size of a byte in memory - Java
I have heard mixed opinions over the amount of memory that a byte takes up in a java program.
Saturday, February 25, 2012
MapView and dealloc IOS
Hello i have a mapView and i think it takes too much memory after leaving the mapView
Friday, January 13, 2012
Writing huge string data to file in java, optimization options
I have a chat like desktop java swing app, where i keep getting String type data. Eventually the String variable keeps growing larger and larger.