Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase error limit in Visual Studio?

Tags:

When building an application in Visual Studio. It shows the following error when exceeding the error count

    fatal error C1003: error count exceeds 100; stopping compilation 

Is there a way to increase the error limit?

like image 259
Oleksii Skidan Avatar asked May 21 '10 09:05

Oleksii Skidan


People also ask

How do I fix errors in Visual Studio 2019?

In Visual Studio 2019 Update 16.5 or later you can go to Tools > Options > Projects and Solutions > Build and Run and set 'On Run, when build or deployment error occurs' to one of the options below. Once this is set, running and debugging tests will honor this option as well.


2 Answers

This limitation is hardcoded. Here is the post from the MSFT employee in the microsoft.public.vsnet.general group dated 2006 (look for 'Fatal Error C1003'):

Hi,

Unfortunately this 100 limitation is hard coded and cannot be changed. It's just inpractical to keep all errors information around since one error may cause other several errors.

I hope you understand the rational behind this design by our product team. However, if you still have concerns about this, please feel free to submit your feedback at
http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 which is monitored by our product team. Thank you for your understanding.

Sincerely, Walter Wang ([email protected], remove 'online.') Microsoft Online Community Support"

like image 166
Dmitry Egorenkov Avatar answered Sep 23 '22 13:09

Dmitry Egorenkov


I don't think so. VS basically reports all errors it encounters during compilations. There might be some erroneous parts of the code that make the compiler getting caught in an infinite "error" loop.

The limit was implemented to avoid that. In most cases the 100 errors you get are just the same error reported over and over again. What would be the sense in increasing the number of repetitions?

Maybe you can post the code snippet where the error occurs first, so we can help you fix it.

like image 40
msteiger Avatar answered Sep 23 '22 13:09

msteiger