What could cause a returning function to crash? C++
Posted
by
JeanOTF
on Stack Overflow
See other posts from Stack Overflow
or by JeanOTF
Published on 2011-01-15T09:51:59Z
Indexed on
2011/01/15
9:53 UTC
Read the original article
Hit count: 167
So I have been debugging this error for hours now. I writing a program using Ogre3d relevant only because it doesn't load symbols so it doesn't let me stack trace which made finding the location of the crash even harder. So, write before I call a specific function I print out "Starting" then I call the function and immediately after I print "Stopping". Throughout the function I print out letters A-F where F is printed right before the function returns (one line above the last '}') The weird thing is when the crash occurs it is after the 'F' is printed but there is no 'Stopping'. Does this mean that the crash is happening in between somewhere? The only thing I can think of is something going wrong during the deallocation of some of the memory allocated during the function. I've never had anything happen like this, I will keep checking to make sure it's going wrong where I think it is.
© Stack Overflow or respective owner