PDA

View Full Version : Trouble debuging



vrltwe
24th July 2013, 17:32
Please watch http://www.youtube.com/watch?feature=player_embedded&v=Mj43Q_zbe6Y.

What may cause the segmentation fault just after the mouse enters the window? What's the approach to take in order to solve this problem?

Any information will be appreciated.

ChrisW67
24th July 2013, 21:54
What may cause the segmentation fault just after the mouse enters the window?
Your code. Typically a null, initialised or invalid pointer

What's the approach to take in order to solve this problem?
Run a debug build in your debugger. When it crashes look down the stack backtrace until you find the first line of your code and inspect all the variables involved at that point. One of them is most likely rubbish.