To get a trial key
fill out the form below
Team License (a basic version)
Enterprise License (an extended version)
* By clicking this button you agree to our Privacy Policy statement

Request our prices
New License
License Renewal
--Select currency--
* By clicking this button you agree to our Privacy Policy statement

Free PVS-Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

Message submitted.

Your message has been sent. We will email you at

If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

What environment do Microsoft developer…

What environment do Microsoft developers use, I wonder? Linux?

Nov 27 2012

I'm joking about Linux, of course. Nevertheless, this question really interests me. I understand that systems they work on in Microsoft are large and complex. I know very well that bugs may be detected by users only some time later after release. But I don't understand how can one simply not notice obvious bugs in the tools the developers themselves are meant to use regularly?

A few words about classic mistakes to start with. Everything's clear about them: developers may well miss them because they are not the end users. A good example of this is an error in one of the Microsoft Visio versions. It was the 2010 version, I suppose. When you started typing text in Russian into a Basic Flowchart block, it was being typed back to front. I can understand it. Someone has mixed up things and decided that words are written from right to left in the Russian language. Russian and Arabic are absolutely the same, or very similar at least. There were no Russians among testers, and the error got into the release version. I can understand this case.

But what happens in the Visual Studio environment cannot be explained by any rational reason. Don't they use this environment at all? I suspect that they use complex build-systems to build their projects. But doesn't anybody in the whole Microsoft corporation use the Visual Studio environment itself in their work? If anybody does, why cannot they see obvious defects?

The search function in the Visual Studio 2010 environment has become a notorious story [1, 2, 3, ...]. Those of you who used to work in Visual Studio 2010 at once understand what I mean. Hasn't anyone of the Visual Studio developers ever pressed Ctrl+F in this environment?

With the release of Windows 8, programmers have got another bugdrome. I don't know in what programs it will reveal itself. But I can tell you how it impacts PVS-Studio. In our area, it reveals itself at the connection between Windows Defender and the Visual C++ compiler. My colleague has written a technical note about that. But I want to explain its point in a simpler and more emotional way.

So, once upon a time there lived the Windows Defender system in Windows. In Windows 8, this system has become a kind of a free antivirus. Everything's OK. But PVS-Studio now works several times slower.

How are these related? This relation is subtle and vague. The PVS-Studio analyzer launches the Visual C++ compiler (cl.exe) for the preprocessing purpose. Well, now preprocessing is executed only on one core if Windows Defender is active. Miracles and magic!

The reader might say: "You must be creating processes incorrectly. Check Affinity Mask.". No, it's alright with that. The problem is with the association between Windows Defender and Visual C++.

At the same time, there is some mechanism made of plasticine and paper inside Windows Defender. It makes Visual Studio pretend to work correctly. All the processor cores are being used in parallel compilation. But once you specify the switches /P and /c in the settings, everything goes wrong. You press F7 in Visual Studio, and all the CL.EXE processes are run on one core. It's a funny thing watching all the processes huddle together on one core in an 8-core processor, eating off their small 12% of CPU load. All the rest 7 cores are drinking tea meanwhile.

Once you turn Windows Defender off, everything starts working well. I'm sure other apps will soon suffer from Windows Defender too.

Let's go back to PVS-Studio. It needs to launch CL.EXE for that very purpose of file preprocessing. As a result, this all is done on one core. A sad thing. At the same time, even forced specification of Affinity Mask can't help it in any way: Windows Defender holds the system tight in its claws.

And again I want to ask that question! Why, do the Microsoft programmers turn Windows Defender off when working? Hasn't anybody ever noticed anything strange? Or doesn't anybody use Visual Studio at all?

On the one hand, it all would seem trifles and programmers' usual stern routine. We have seen much strange in complex systems before. But I'm still upset with this situation. We don't know how to fix that slowdown without turning Windows Defender off. The Internet is keeping silent so far.

The main reason for it all must be the fact that developers use a different environment than the one they offer to users. One more question. If guys in Microsoft really turn Windows Defender off, do we need this useful system ourselves?

This is my appeal to developers. Not only those from Microsoft, but all the developers. Use the applications you develop! Otherwise users feel very well that you don't trust your own system. This distrust crawls out of every crack. And it forms a negative attitude to your product.

Popular related articles
The Ultimate Question of Programming, Refactoring, and Everything

Date: Apr 14 2016

Author: Andrey Karpov

Yes, you've guessed correctly - the answer is "42". In this article you will find 42 recommendations about coding in C++ that can help a programmer avoid a lot of errors, save time and effort. The au…
The Evil within the Comparison Functions

Date: May 19 2017

Author: Andrey Karpov

Perhaps, readers remember my article titled "Last line effect". It describes a pattern I've once noticed: in most cases programmers make an error in the last line of similar text blocks. Now I want t…
The way static analyzers fight against false positives, and why they do it

Date: Mar 20 2017

Author: Andrey Karpov

In my previous article I wrote that I don't like the approach of evaluating the efficiency of static analyzers with the help of synthetic tests. In that article, I give the example of a code fragment…
Technologies used in the PVS-Studio code analyzer for finding bugs and potential vulnerabilities

Date: Nov 21 2018

Author: Andrey Karpov

A brief description of technologies used in the PVS-Studio tool, which let us effectively detect a large number of error patterns and potential vulnerabilities. The article describes the implementati…
Static analysis as part of the development process in Unreal Engine

Date: Jun 27 2017

Author: Andrey Karpov

Unreal Engine continues to develop as new code is added and previously written code is changed. What is the inevitable consequence of ongoing development in a project? The emergence of new bugs in th…
PVS-Studio ROI

Date: Jan 30 2019

Author: Andrey Karpov

Occasionally, we're asked a question, what monetary value the company will receive from using PVS-Studio. We decided to draw up a response in the form of an article and provide tables, which will sho…
PVS-Studio for Java

Date: Jan 17 2019

Author: Andrey Karpov

In the seventh version of the PVS-Studio static analyzer, we added support of the Java language. It's time for a brief story of how we've started making support of the Java language, how far we've co…
The Last Line Effect

Date: May 31 2014

Author: Andrey Karpov

I have studied many errors caused by the use of the Copy-Paste method, and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have ne…
How PVS-Studio Proved to Be More Attentive Than Three and a Half Programmers

Date: Oct 22 2018

Author: Andrey Karpov

Just like other static analyzers, PVS-Studio often produces false positives. What you are about to read is a short story where I'll tell you how PVS-Studio proved, just one more time, to be more atte…
Characteristics of PVS-Studio Analyzer by the Example of EFL Core Libraries, 10-15% of False Positives

Date: Jul 31 2017

Author: Andrey Karpov

After I wrote quite a big article about the analysis of the Tizen OS code, I received a large number of questions concerning the percentage of false positives and the density of errors (how many erro…

Comments (0)

Next comments
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site.
Learn More →