Tips for using the VC++ debugger?

Started by
0 comments, last by Maega 20 years, 8 months ago
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?
Advertisement
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.

This topic is closed to new replies.

Advertisement