R6016 Runtime error, Microsoft Visual C++ Runtime Library
I have a solution. At least it works for me. I am running Windows 10 Pro 64 bit. I was getting this error message every day on a very random basis, but consistently every day, all day.
The R6016 Error message has to do with thread data and the lack of space available for these threads. Not real sure about the technical specifics, nor will I pretend to understand how all this works, but I can, on
the surface plow my way through the global view and show my approach to this resolution.
Here's what I did:
On the task bar, at the bottom of the screen, right click on an empty area of the task bar and choose the "Task Manager" (Mine is third entry from bottom of list). Then left click the "Performance" tab. Towards the
bottom of that screen you will see several different 'Counts', one of which is 'Threads'. That is the thread count the error message is referring to. My thread count was usually around 1300, 1400 as high as 1500 sometimes and this is about the time I was getting
the R6016 error messages. If I walked away from the PC for any length of time the R6016 error messages would stack up and I would have as many as 12 or more error messages to respond to in order to get rid of them.
So, on the right side of the task bar there are several icons that reflect applications that are running currently on your system. That is to say they are occupying memory and processor and are executing on your PC.
Each of these processes require threads in order to run. I suspect they require many threads to start, stop, move in and out of memory, are subject to paging, etc. You may have as many as 15 or more of these processes on the task bar. I had 19 of these icons
on the right side of my task bar. I managed to get rid of about 7 of them by usually right clicking the icon and getting into the preferences for that application and removing the check box that starts the app at boot time.
As a result, the number of thread counts in the Task Manager went from 1400 or 1500 to about 1000 or less. I no longer get that R6016 Error message. I haven't seen that error message for more than two weeks now. I
will occasionally check the Task Manager for the thread count and it varies from about 900 to 1100 every day all day.
Not real sure how this approach would work with other operating systems but for Win 10 64 bit it seems to be the solution.