Fatal Error C1509
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Fatal Error C1509.
compiler limit : too many exception handler states in function 'function'. simplify function
The code exceeds an internal limit on exception handler states (32,768 states).
The most common cause is that the function contains a complex expression of user-defined class variables and arithmetic operators.
To fix by using the following possible solutions
Simplify expressions by assigning common subexpressions to temporary variables.
Split the function into smaller functions.
Show: