[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application."

Ashutosh Kumar Verma 0 Reputation points
2024-06-05T06:15:15.6366667+00:00

[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application."

Assert Image mentioned below:

image_assert.png

Resolved Call Stack mentioned in Microsoft Visual Studio Professional 2022 (64-bit) - Current

Version 17.1.6:

Debug_Info.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,194 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,760 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,831 Reputation points Microsoft Vendor
    2024-06-05T08:53:08.8533333+00:00

    Hi @Ashutosh Kumar Verma, 

    Welcome to Microsoft Q&A!

    Did you set a breakpoint before?

    Please close all running Visual Studio instances and update your Visual Studio to the latest version. 

    Then, launch your VS again and go to Tools > Options > Debugging > uncheck “Enable Just My Code”.  

    Sincerely,

    Anna


    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

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.