I’m just beginning to get into C++ and I want to pick up some good habits. If I have just allocated an array of type int with the new...
Should you set all the objects to null (Nothing in VB.NET) once you have finished with them? I understand that in .NET it is essential to dispose of any...
By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static variables, constant data types, local variables (defined and declared...
What are some really good reasons to ditch std::allocator in favor of a custom solution? Have you run across any situations where it was absolutely necessary for correctness, performance,...
I want to get the CPU and memory usage of a single process on Linux – I know the PID. Hopefully, I can get it every second and write...
For the most part with ARC (Automatic Reference Counting), we don’t need to think about memory management at all with Objective-C objects. It is not permitted to create NSAutoreleasePools...
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only...
As someone that’s new to Objective-C can someone give me an overview of the retain, assign, copy and any others I’m missing, that follow the @property directive? What are...
According to Linux programmers manual: brk() and sbrk() change the location of the program break, which defines the end of the process’s data segment. What does the data segment...
Is it allowed to delete this; if the delete-statement is the last statement that will be executed on that instance of the class? Of course I’m sure that the...