I have an OpenGL app that displays a static scene. This scene is comprised of about 150k polygons. Since there are so many polygons, and since it\'s a static scene, I decided to use a display list to
I want to use map in C++, but I don\'t use exceptions. After using map<int, int> my_map in a function, how can I check if it managed to allocate memory internally (I understand that with excepti
We have a lot of staff that are relatively new to iOS programming and memory management in general. I want to build an app with a couple of labels showing retain counts and a some buttons to increment
This code is for Windows 7. I am trying to grab the response to an AT command and print just the part of the string I need. Visual Studio Express is randomly telling me I have memory exceptions with t
I\'m new to Objective C and I could really use some assistance. I have created a class called Agent.The Agent class contains the following method:
I\'m having this issue with some objective C code to load the images on a IKImageBrowserView. I\'m following the image browser example from apple, but I still fail at some point and Im guessing its me
Is there any compiler independent and syntactically elegant way to set a vtable pointer in an object allocated with malloc?
I am looking for a way to allocate a 2D (m x n) matrix on the heap where the elements are consecutive in memory. Currently I know of two ways to accomplish that:
Why is it that when running code from gdb, I get the same addresses for the variables declared, but while just executing the binary I don\'t get the same addresses.
A simplified version of my XML parsing function is here: import xml.etree.cElementTree as ET def analyze(xml):