VS 2015

Started by
3 comments, last by Ryan_001 7 years, 11 months ago

I just upgraded from 2012 to 2015 both free editions and I've had some stupid hiccups with compiler options and linker options but since moving I'm finding a runtime crash that has probably been in my code for a while but haven't had any issue with till now.

Anyway when the crash happens I have no debug variables, but if I put a breakpoint on the line of code I do get debug variables (This is a function called every frame). Clearly it knows about symbols and I'm running in debug, but barely anything is showing up. Any ideas? I'm going back to 2012 for now and hoping this gets my variables back and maybe it won't crash.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

Advertisement

Can you break before the crash and then step until it occurs?

Sounds like stack corruption (e.g. a memset that's going out of bounds and trashing your call-stack) -- this can really screw over a debugger.

In the compiler's code generation option for debug, make sure all the optional debug extras are on, such as "basic runtime checks" and "buffer security checks" etc... Also consider looking into Windows application verifier, which can be great at helping track down subtle bugs like this.

Think I got a lead on the issue. Very well could be stack corruption.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

When switching to 2015, did you make sure to clean & recompile? I also had similar issues, as 2015 seemed to wrongfully reuse some of the obj-files/binaries from the old compilation.

I've occasionally had the issue where even in debug mode (all optimizations off), some function parameters don't show up. I've been able to replicate it with a working program (ie. no problems, stack corruption, or anything). It only applied to function parameters and I could assign the function parameter to a variable and the value was correct and everything worked, but still couldn't inspect the function parameter. Just sort of made a mental note of it and moved on, hadn't really thought of it till this post...

This topic is closed to new replies.

Advertisement