I am having big problems using the Win32 debugger within VS2008 in Vista. At various points when leaving a function the whole thing hangs and I have to kill devenv.exe to get back to normal. THe problem occurs when single-stepping into and out of functions and is repeatable. It only occurs when using the Win32 debugger in VS2008 on Vista - VS2005 seems okay and VS2008 is okay on XP. I've only got one Vista install (fully updated, UAC disabled) so I can't tell whether it's my setup or a general problem.
The code below causes the problem - if you just create a new FTN95 project and repeatedly press the step into button, stepping into the CrashOnStepIn function, the second time you exit the function VS hangs. I've uploaded the full project to: http://www.wsanoise.com/testsite/download/FTNVistaDebugCrash2.zip
Is this just me or is it a general problem ?
Thanks, Alan
! Debugging using step into on Win32 builds in Vista/VC2008 causes Visual Studio to ! hang when leaving the function for the second or third time. The crash does not ! appear to occur in VS2005 module TestMod
contains
integer function CrashOnStepin(num1, num2) integer, intent(in):: num1 integer, intent(in):: num2
CrashOnStepin = num1 + num2
end function CrashOnStepin
end module TestMod
program FTN95VistaDebugCrash2 use TestMod
integer:: i, j
! Single step using step into and entering INTO function CrashOnStepin. Win32 debugger ! in Vista/VS2008 crashes VS on existing the function for the second or third time. ! Depending on the contents of the function this may occur sooner or later. You have ! to kill devenv.exe to get it to go away j = 0 do i = 1, 42 j = CrashOnStepin(i, j) print *, 'The answser is ', j end do
print *, 'Test completed' end program