Archived

This topic is now archived and is closed to further replies.

Maega

Tips for using the VC++ debugger?

Recommended Posts

Hey everybody, For the life of me, I can''t figure out why one of my IDirectMusicSegment8 parameters is always pointing to 0x000000. I thought I was passing the segment to the function correctly, but I guess not if it crashes . So my question is.. what is the best way to find such a problem with the debugger?

Share this post


Link to post
Share on other sites
Either set a breakpoint at a point prior to where things crash and step through until it crashes, and look at the variables as you go along to make sure they are what you want them to be, or set a breakpoint on a condition, i.e., when a variable becomes a certain value to figure out where things are going wrong.

Share this post


Link to post
Share on other sites