My app has an NSOperation class called ServerRequest that handles networking tasks.According to instruments, it is leaking like crazy.Additionally, instruments says the code that builds the request is
Suppose I have a C function: void myFunction(..., int nObs){ int myVec[nObs] ; ... } Is myVec being dynamically allocated?nObs is not constant whenever myFunction is called.I ask because I am curre
When I run my iPhone app with \"Leaks\" (which has a section for Object Alloc), my app seems to be fine for memory allocation.However, when I run it with just the ObjectAlloc tool, the memory increase
I\'m trying to build my own Hash Table in C from scratch as an exercise and I\'m doing one little step at a time. But I\'m having a little issue...
I\'m creating an Android app that involves multiple short sound clips. At the moment, I\'m using SoundPool to load my sound clips once a 2nd activity is begun by the menu activity. The problem I seem
I am writing code that inserts rows from a database into a vector. The vectors are then stored in a std::map. This architecture allows me to logically partition the datasets (vectors), based on the ma
How can I find the memory used on my Android application, programmati开发者_如何学JAVAcally? I hope there is a way to do it. Plus, how do I get the free memory of the phone too?Note that memory usage
A simple test app: cout << new int[0] << endl; outputs: 0x876c0b8 So it looks like it works. What does the standard say about this? Is it always legal to \"all开发者_StackOverflowoca
Example: I have a view controller and get rid of it. But there\'s still an variable holding it\'s memory address. Accessing that results in EXEC_BAD_ACCESS. Of course. But: Is there any way to check i
There are many questions discussing the details of C and C++ dealing with pointer-to-const deletion, namely that free() does not accept them and that delete and delete[] do and that constness doesn\'t