[SOLVED] segfault on New (mild necro)

Hey all,

I saw that Helios was having a similar problem to what I'm experiencing, and figured I'd bring it up again

Helios, when you posted this question:
http://www.cplusplus.com/forum/general/6162/

Did you ever find a solution to this? I'm having a similar issue with a quadtree class I made, and I was wondering what you did to solve this. What's happening for me is that when I create a new quadtree, I get an access violation error even before the constructor for the quadtree is called. I suspect there might be issues that are related between your problem and mine. Thank you!
Last edited on
The resolution is here: http://www.cplusplus.com/forum/general/7089/

There were a few really hard to detect errors that were interacting with each other to create a really nasty bug. In particular, uninitialized members were wreaking havoc in a way I simply cannot describe. It's something you'd need to see for yourself to believe.
Thanks, Helios. I'll take a look at this. Sounds like I'm in for a heap of fun tonight, no pun intended.
Wow. Turns out it was all caused by a simple decrement in a recursive function. Thanks for the help Helios, I'll hold onto that link in case it comes up again (but dear lord I hope it won't...)
Last edited on
Topic archived. No new replies allowed.