Microsft visual C++ runtime error R6016

彬 曹 0 Reputation points
2023-05-18T02:31:50.62+00:00

What is the cause of this error and How do I resolve this error?

system:win10 Professional Edition 21H2

memory:16GB

Information note:While the computer is running,Sometimes this error pops up,This problem occurs more often when a computer wakes up with a lock screen.

All patches have been upgraded for version 21H2

I have uninstalled all visual C++,Download and install viual C++ 2015-2022 redistributable(x64、X86) 14.30.30704 from Microsoft.But the error still appears.

Esafenet and Mcafee agent are installed in the system1

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,159 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,872 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,356 Reputation points Microsoft Vendor
    2023-05-18T07:04:55.8+00:00

    Hello @彬 曹,

    Welcome to Microsoft Q&A forum.

    SpatialAudioLicenseSrv.exe is related to audio, is there any process/application running on your machine and using audio?

    If you still remember the applications that you installed or used before this error appeared for the first time, you can consider reinstalling them, as sometimes, incompatibilities between applications and Windows OS may cause this issue.

    Also did you change some system settings like battery settings, sleeping settings?

    Try to perform a clean boot in Windows to start Windows with a minimal set of drivers and startup programs. If this error doesn’t appear in "clean boot", then it means this error is caused by any installed programs.

    Besides, please also confirm that the disk and memory have enough space. Run DISM.exe /Online /Cleanup-image /Restorehealth command in an elevated command prompt(run CMD as administrator) and after it finishes running, run sfc /scannow command.

    Feel free to let us know the result.

    Sincerely,

    Tianyu


    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

  2. Limitless Technology 44,101 Reputation points
    2023-05-18T15:10:20.3033333+00:00

    Hello there,

    This error occurs because the program did not receive enough memory from the operating system to complete a _beginthread or _beginthreadex call, or thread local storage has not been initialized by _beginthread or _beginthreadex . When a new thread is started, the library must create an internal database for the thread.

    https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/c-runtime-error-r6016?view=msvc-170

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments