You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug breakpoint step over (F10) causes the debugger to immediately close without any catchable exception.
A console output access violation error message is visible.
The incident occurs only when the debug break point is hit.
Version Used:
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.2
Windows 10 Pro
C# net 8.0 Console Application
The application start an infinite background thread and stop it.
When a debug break point is set on line 74 or 75 (Manager.cs class file), after hit, performing a step over closes the debugger and output following message: The program '[16356] ConsoleThread_Test1.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.
The application works fine without the debug breakpoint in that precise code line.
The error do not occur if the line 75 (if (IsWorking)) is removed or the private backfield is used instead.
The error do not occur if the line 89 (foreach (BaseScene scene in m_Cache.Values)) is removed or m_Cache is used instead.
Here the Windows event viewer report about the incident:
Debug breakpoint step over (F10) causes the debugger to immediately close without any catchable exception.
A console output access violation error message is visible.
The incident occurs only when the debug break point is hit.
Version Used:
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.2
Windows 10 Pro
C# net 8.0 Console Application
Steps to Reproduce:
Here you can find a small solution to reproduce the issue.
ConsoleThread_Test1.zip
The application start an infinite background thread and stop it.
When a debug break point is set on line 74 or 75 (Manager.cs class file), after hit, performing a step over closes the debugger and output following message:
The program '[16356] ConsoleThread_Test1.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.
The application works fine without the debug breakpoint in that precise code line.
The error do not occur if the line 75 (if (IsWorking)) is removed or the private backfield is used instead.
The error do not occur if the line 89 (foreach (BaseScene scene in m_Cache.Values)) is removed or m_Cache is used instead.
Here the Windows event viewer report about the incident:
Faulting application name: ConsoleThread_Test1.exe, version: 1.0.0.0, time stamp: 0x65a80000
Faulting module name: ntdll.dll, version: 10.0.19041.4239, time stamp: 0xad5435e9
Exception code: 0xc0000005
Fault offset: 0x0000000000031548
The text was updated successfully, but these errors were encountered: