Memory Leaks in OpenGL Implementation
Memory Leaks in OpenGL Implementation
- Subject: Memory Leaks in OpenGL Implementation
- From: Alexander Küken <email@hidden>
- Date: Tue, 7 Feb 2006 16:41:50 +0100
Dear Mailinglist-Member,
I am not sure, if this is the right mailinglist, because I am very
unfamiliar with Cocoa and Obj-C.
At the moment I am working on an university project. This projects is
written entirly in C and uses OpenGL with the GLUT library. In order
to prevent memory leaks I tested the executable with the commandline
tool leaks. So I discovered, that there are problems regarding the
memory. In order to ensure, that it is not my fault, i tried another
C-Application with OpenGL. The result was the same.
There are memory leaks in the following components:
NSNotificationCenter addObserver:selector:name:object:
gluNewQuadricCTX
CFAllocatorAllocate
Here is an extraction of the leaks output:
Leak: 0x0050f500 size=32
0x000186a0 0x00000000 0x000186b4
0x000186ac ................
0x00000000 0x00000000 0x02812a00
0x00000002 ..........*.....
Call stack: [thread 1eff]: | 0xbffff664 | start | _start |
main | initializeDisplayLists | renderWheel | gluNewQuadricCTX
Leak: 0x00516190 size=16
0x00000001 0x0050e580 0x909dd6a8
0x00081000 .....P..........
Call stack: [thread 1eff]: | 0xbffff664 | start | _start |
main | glutInit | +[NSApplication sharedApplication] | -
[GLUTApplication init] | -[NSApplication init] | -
[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] | _nsnoteinfo_new
Leak: 0x0050a580 size=16
0x00000001 0x00000000 0x907d3924 0x00000000 .........}9
$....
Call stack: [thread bfffec0f]: | 0xbffff664 | start | _start
| main | glutInit | __glutSetForeground | GetCurrentProcess |
INIT_Processes | RegisterProcess | _CGSDefaultConnection |
CGSInitialize | pthread_once | cgsInit | initCGDisplayMappings |
initCGDisplayState | CGSScoreboard | CGSServerPort |
CFBundleGetValueForInfoDictionaryKey | CFBundleGetLocalInfoDictionary
| CFBundleCopyResourceURL | _CFBundleGetLanguageSearchList |
_CFBundleAddPreferredLprojNamesInDirectory |
_CFBundleCopyUserLanguages | CFPreferencesCopyAppValue |
_CFStandardApplicationPreferences | CFNotificationCenterAddObserver |
CFAllocatorAllocate
My question now is, if this is a known problem and if there is
anything, that can be done, to prevent this. Or have I to wait, until
Apple will fix this sometime?
With best regards
Alexander Küken
Student _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden