VC++ STL Vector problem
- Colonel Kernel
- Member
- Posts: 1437
- Joined: Tue Oct 17, 2006 6:06 pm
- Location: Vancouver, BC, Canada
- Contact:
Re:VC++ STL Vector problem
Doh, you're right -- I was thinking assignment operator, not copy constructor.
Top three reasons why my OS project died:
- Too much overtime at work
- Got married
- My brain got stuck in an infinite loop while trying to design the memory manager
Re:VC++ STL Vector problem
And it works It actually works. Apparently you were exactly right, and the copy constructors did make all the difference. Thanks for all the help guys, now I just need to work out the other hundred or so bugs ::)
Thanks again
Thanks again
Re:VC++ STL Vector problem
No problem, I was happy to help.
Perhaps next time you believe us right away...?!?
Perhaps next time you believe us right away...?!?
Every good solution is obvious once you've found it.
Re:VC++ STL Vector problem
Yeah, I probably should believe you quicker, you have like a million times the experience I have It just completely threw me because I couldn't see how pushing an object with a couple of invalid pointers onto a vector could produce results very akin to corrupting the stack. Oh well, time to make sure all my copy constructors are solid.