Hello world program access violations

JW 81 Reputation points
2022-11-15T08:38:21.14+00:00

I create a new C++ console application, then enable Address Sanitizer and run, the output shows many read access violations and also a write access violation (ntdll.dll).

Why? Is this normal or am I missing something?

260390-vs.png

Developer technologies C++
{count} votes

Accepted answer
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2022-11-16T07:19:02.963+00:00

    Hi, @JW

    The problem is normal. You don't need to worry about this.

    Tested running the same project. The exceptions occur in vs2022 17.4.0, but not in preview.

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.