0xcdcdcdcdcd

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
An address of 0xcdcdcdcd smells very much like an uninitialized variable.
Last edited on
It can also be a pointer that has been deleted but not set to NULL.
Deleting a pointer doesn't change its value.
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.
Ok thanks guys, I HATE memory leaks-_-
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
Memory leaks are driving the price of RAM down. Love them. ;o)
It's Java that's driving the price of RAM down.
Topic archived. No new replies allowed.