My main program spawns a thread, which executes the following: // alloc autorelease pool somewhere before
I\'m having a memory leak and I have no clue where it comes from and how to fix it. At some point i calculate the distance between 2 locations.
I have a custom allocator function which uses sbrk() to obtain memory. How do I release this m开发者_高级运维emory when it\'s no longer needed?
I thought that the maximum user space for a 64bit process was 8TB, but I did a little test and the maximum I could get is 10-11GB.
I\'ve read a few articles, and I understood the following (please correct me and/or edit the question if I\'m wrong):
While coding should we consider some limit on the total size of variables created on the stack? If yes, on what basis should we decide it? Is it dependent on OS, Memory Availability etc? Are there any
My CF application has a very customized UI, using lots of images as UI elements. The UI feels a lot more smooth when these bitmaps are kept in memory. When they\'re loaded on demand, the UI is slow an
In programming languages concept, Sebesta\'s book states that (Ninth ed., 284): The disadvantage of fixed heap-dynamic arrays is that they take longer time to allocate array from stack.
Why are programs like Microsoft Excel, Gnumeric and OpenOffice.org Calc designed with hard-coded limits on the number of rows and columns?This seems like an archaic programming technique from when spr
I\'ve developed my application using my 3G d开发者_Python百科evice to test with. Upon giving this to a friend to test, he\'s noticed that it crashes..I\'ve had a look at the crash log, but it\'s not m