I have a large C++ application running in a Win32 and a x64 Version (using Windows XP x64). When debugging the x64 Version, after each code change the first debug session i start stops with
Unhandled exception at 0x77ee5f3c in myapp.exe: 0xC0000005: Access violation writing location 0x0000000000030c90.
The callstack shows endless recursive calls in ntdll:
ntdll.dll!0000000077ee5f46()
ntdll.dll!0000000077ef31ed()
ntdll.dll!0000000077efbc0b()
ntdll.dll!0000000077f2539e()
ntdll.dll!0000000077ee5f46()
ntdll.dll!0000000077ef31ed()
etc.
When after this i choose "Stop Debugging" and then "Start Debugging" usually everything is fine and the problem does not occur again until i compile some code and link or if i restart Visual Studio.