0xcdcdcdcdcd

Nov 5, 2010 at 2:59pm
Do you need to do delete these pointers? I know they're not null but as far as I remember it's also not a valid memory adress. I'm having problems with a memory leak I cant fine
Nov 5, 2010 at 3:14pm
An address of 0xcdcdcdcd smells very much like an uninitialized variable.
Last edited on Nov 5, 2010 at 3:14pm
Nov 5, 2010 at 3:32pm
It can also be a pointer that has been deleted but not set to NULL.
Nov 5, 2010 at 4:45pm
Deleting a pointer doesn't change its value.
Nov 5, 2010 at 5:07pm
You're right helios, I'm getting it mixed up with 0xfeeefeee which is MS debug specific, knew I'd seen something like this before though. Either way, nothing has been assigned to the pointer, so Athars answer is probably what's happening.
Nov 5, 2010 at 5:11pm
Ok thanks guys, I HATE memory leaks-_-
Nov 5, 2010 at 5:35pm
Memory leaks are easy to avoid in most situations if you consequently follow RAII.
And they're usually easy to find when running your program through valgrind.
Last edited on Nov 5, 2010 at 5:37pm
Nov 5, 2010 at 5:38pm
Memory leaks are driving the price of RAM down. Love them. ;o)
Nov 5, 2010 at 6:03pm
It's Java that's driving the price of RAM down.
Topic archived. No new replies allowed.