c++ - Debugger is jumping around, not sure what I did -


i using visual studio 2013 ultimate , having problem when step through code debugger jumping around. able find 2 articles here on stack overflow neither of them solved problem.

auto = m_actorcomponents.begin(); while (it != m_actorcomponents.end()) {     delete it->second;     it->second = nullptr;     = m_actorcomponents.erase(it); } 

in piece of code above, example, when try step through enters loop executes delete line, jumps erase line, jumps nullptr line. repeats pattern every iteration. different parts of code seem jump around sporadically. before happened playing around profile guided optimization believe has that, cannot figure out how fix it. have cleaned , rebuilt solution, deleted debug , release folders, etc. know how can turn off because makes difficult figure out going on.

on side note, using _crtsetdbgflag(_crtdbg_alloc_mem_df | _crtdbg_leak_check_df); check memory leaks. there none upon program exit, yet everytime reload game level during runtime framerate drops. if continue reload can down 4 fps , sit there. me, means there memory leak present upon level load somehow cleaned on program exit. have ideas on how track or profiling tools c++ memory usage during runtime?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -