Hi everyone,
During debugging, I find that the address of a raw pointer changes although I don't (re-)allocate anything. Is this typically due to a segmentation error or could this be something else ?
Thanks !
Hi everyone,
During debugging, I find that the address of a raw pointer changes although I don't (re-)allocate anything. Is this typically due to a segmentation error or could this be something else ?
Thanks !
It won't be a segmentation fault. It's probably caused by a buffer overflow, which also often causes segmentation fault. That is, you probably write more data to a buffer than the buffer has space for.
Well yes. Either you are changing the pointers even though you don't see where, or something else in your program is accessing memory in an undefined and dangerous way.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.