memory-management
OpenGL not deallocating display list memory
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[详细]
2023-04-12 04:27 分类:问答How to check if map could be created, if I don't use exceptions?
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[详细]
2023-04-12 01:25 分类:问答I want to build app to train people on memory usage (iOS)
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[详细]
2023-04-12 00:55 分类:问答Intermittent memory exception error with COM communication
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[详细]
2023-04-12 00:18 分类:问答Object added to Array is immediately 'out of scope'
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:[详细]
2023-04-11 23:59 分类:问答Objective C memory management issue
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[详细]
2023-04-11 23:33 分类:问答On VTable pointers and malloc
Is there any compiler independent and syntactically elegant way to set a vtable pointer in an object allocated with malloc?[详细]
2023-04-11 23:00 分类:问答2D Matrix allocation on heap in c++
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:[详细]
2023-04-11 22:24 分类:问答Why does the address of a local variable vary when executing multiple times, but not when debugging it with GDB?
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.[详细]
2023-04-11 21:47 分类:问答Python running out of memory parsing XML using cElementTree.iterparse
A simplified version of my XML parsing function is here: import xml.etree.cElementTree as ET def analyze(xml):[详细]
2023-04-11 20:49 分类:问答