Crash on fp-assignment in constructor [C++]-Collection of common programming errors
Unless your binary is corrupted there is no way a simple assignment should be causing a crash – unless you’ve overloaded the assignment operator?
What’s more than likely is that you’ve corrupted the heap, or invoked undefined behaviour some where and what you’ve tracked down is just a side effect of this.
Application Verifier is quite handy on windows for helping track down these sorts of things:
http://msdn.microsoft.com/en-us/library/ms220948(v=vs.90).aspx
But.. its by no means simple to track down the real cause of these sorts of bugs, highest warning levels, warnings as errors and static code checkers help to keep majority of these issues at bay.
Originally posted 2013-11-09 21:10:21.